:: reverse dictionary ::
※ソースファイルについて
配列の最後の要素を削除するには、array_pop 関数を使います。
$systems = array("Windows", "Linux", "Solaris"); $last = array_pop($systems); $count = count($systems);
$last は "Solaris" 、$count は 2 になります。
mixed array_pop(array a)
配列 a の最後の要素を返すと同時に削除します。
配列 a の要素数は一つ減ります。
配列 a に要素がない場合は null を返します。
a … 配列
・配列 a に要素がある … 配列 a の最後の要素
・配列 a に要素がない … null
PHP4 、PHP5
Copyright (C) 2005-2007 Noto Watabe. All rights reserved.
e-mail:wmh@always-pg.com