我得到這個錯誤在PHP中。誰能幫助!它說
意外 '$ ARR'(T_VARIABLE)
。什麼是T_變量?
<?php $d=date("D"); if ($d=="Fri") echo "Have a nice weekend!"; else echo "Have a nice day!";
print "\nday is $d";
$array = array(1, 2, 3, 4, 5); foreach($array as $value) { echo "Value is $value <br />"; }
print "\n associative arrays"
$arr = array(
"key1" => value1,
"key2"=> value2,
"key3"=> value3
);
echo "printing out";
//foreach($arr as $value)
//echo "$value ";
?>
'E_SEMICOLON_MISSING_IN_LINE_BEFORE' – bwoebi
使用IDE來避免這樣的一個錯字錯誤。 (eclipse,netbeans,phpstorm是3百萬) –