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