关于list语句

关于list语句

<?php
/**
 * QQ:5871029 Email:hel8@vip.qq.com
 * @copyright Horleun (c)2010
 * @author Horleun <Horleun@foxmail.com>
 */
$A311=array(“25″,”Horleun”,”student”);
list($NO,$name,$st)=$A311;  //$NO/$name/$st可仅设置其中部分,如(,$name,$st),省略第一个!
echo $name.” is a “. $st.”,Number is”.$NO.”.<br />”;
list(,$name,)=$A311;
echo “My name is ” . $name . “!<br />”;
?>

留下回复