Stay Hungry
Tuesday 29 October 2019
PHP assign array values to multiple variables
<?php
$a = [1,2,3,4];
list($firstVar, $secondVar) = $a;
print_r($firstVar); //1
print_r($secondVar); //2
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment