-6
thrue milti陣列我需要環通用foreach和只列出汽車陣列是年輕的,然後2000PHP循環用foreach
$cars = array(array("model"=>"Volvo","year"=>2010),array("model"=>"BMW","year"=>1995),array("model"=>"Saab","year"=>1998),array("model"=>"Land Rover","year"=>2004)
請參考[的foreach] PHP文檔(http://php.net/manual/en/control-structures.foreach.php)和[比較運算符(http://php.net/手冊/ en/language.operators.comparison.php),祝您有愉快的一天。 – cteski