PHP之list()注意点

Definition and Usage

The list() function is used to assign values to a list of variables in one operation.

Note: This function only works on numerical arrays.

Syntax

list(var1,var2…)

 

Parameter Description
var1 Required. The first variable to assign a value to
var2,… Optional. More variables to assign values to

Technical Details

Return Value: Returns the assigned array
PHP Version: 4+

Examples

Using the first and third variables:

摘自:http://www.w3schools.com/php/func_array_list.asp

发表评论