我在 php 中收到此错误。谁能帮忙!!它说
意外的“$arr”(T_VARIABLE)
. 什么是 T_variable ?
<?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 ";
?>