PHP list() function
PHP list() function used to assign an array variables into it.
Syntax:
list(param);
Explain: param is an array parameter passed into it.
Note: list() function does not create nor initialize array automatically, it's just declare and hold array variables.
Example:
$date=array("29th", "June", "2009");
list($day, $month, $year)=$date;
For more information, visit PHP official list() function site.
- Forums:
