PHP Parse error: syntax error, unexpected T_ECHO in index.php on line 3
請幫忙指教,這是哪里出了問題?
<?php
"$data_int1 = 123;"
echo $data_int1;
echo "<br />";
"$data_int1 = -123;"
echo $data_int2;
echo "<br />";
"$data_int1 = 0132;"
echo $data_int3;
echo "<br />";
"$data_int1 = 0x123;"
echo $data_int4;
echo "<br />";
?>
2018-06-27
每一個(gè)語句結(jié)尾都是分號(hào),你看看你有沒有分號(hào)。語法錯(cuò)誤 eg: "$data_int1 = 123;" --->$data_int1 = 123;
2018-06-26
我也是萌新 ? 如有高論請教教我
2018-06-26
"$data_int1 = 123;"? 第一次定義得 ? ??"$data_int1 = -123;"第二次定義的就應(yīng)該是int2了? 沒看輸出得也是int2么 ?
"$data_int1 = 0132;"第三次得 就應(yīng)該是int3 ?? 一下同理