list関数

配列と同様の形式で、複数の変数への代入を行う。配列の値を変数に分散する。

$test = array("ビール" , "焼酎" , "日本語");
list($a , $b , $c) = $test;
inserted by FC2 system