countを使って、取得する。
$test =array(a, b, c, d, e);
こんな配列があったとして、
$test_2 = count($test);
print “$test_2“;
こうすると、結果は、5が帰ってくる。$testには、5つのデータが、配列として入っているという事。
参考は、こちら。
http://jp.php.net/manual/ja/function.count.php
[...] 配列の数を取得 [...]
Name (required)
Mail (will not be published) (required)
Website
Comments