php代碼顯示意想不到的語法錯誤[行號碼1 我不知道是什麼問題。如果您使用PHP 5.4
或更高版本,你可以使用這個語法錯誤:「[」意外
$shipping_array = array(
"AL" => array("a","c","b"),
"AZ" => array("b","c","a"),
"AR" => array("a","c","b"),
"WI" => array("c","a","b")
);
:
$shipping_array = [ "AL" => ["a","c","b"],
"AZ" => ["b","c","a"],
"AR" => ["a","c","b"],
"WI" => ["c","a","b"] ];
速記數組聲明是PHP 5.4以上 – Ghost 2014-12-03 08:23:24