2月 102010
 

■list()
list($orange,$apple,$grape) = array(“りんご”, “みかん”, “ぶどう”);
print (“$orange $apple $grape”);
1つ以上の変数に、配列のインデックスを割り当てます。array()関数で定義された値と同じ数の変数にそれぞれのインデックスを引き渡します。
参考:http://www.scollabo.com/banban/php/ref/ref_list.html

よく読まれている記事

この記事を読んだ人は次の記事も読んでいます:

このエントリーをはてなブックマークに追加
はてなブックマーク - array()関数で定義された値と同じ数の変数にそれぞれのインデックスを引き渡す
[`google_buzz` not found]
[`yahoo` not found]
[`livedoor` not found]
[`friendfeed` not found]
[`tweetmeme` not found]
[`grow` not found]
[`evernote` not found]

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)