<?php header("Content-type: text/html; charset=utf-8"); $team = array("ブラジル","イタリア","アルゼンチン","フランス"); $datacnt = count($team); echo "配列teamには $datacnt ヶのデータがあります!<br>"; for($cnt = 0; $cnt < $datacnt; $cnt++){ echo $team[$cnt] . "<br>"; } ?>