2011-05-26 配列のサイズを取得する count() PHP <? $array = array( "要素1", "要素2", "要素3", "要素4" ); echo count( $array ); // 4 と表示される ?>