0

PHP list() function

Use list() function to assign variables as an array. $person = ['John Thomas', 'john@example.com']; list($name, $email) = $person;

23rd Sep 2017, 7:07 PM
Nohman Rauf
Nohman Rauf - avatar
1 Odpowiedź
0
list ($person ['name'],$person ['email']) = $person; print_r ($person);
23rd Sep 2017, 7:27 PM
stewart imanuel