為什么,會(huì)報(bào)錯(cuò)
$love = "I love you!";
$string1="慕課網(wǎng),$love";
$string2='慕課網(wǎng),$love';
$string3="conb,$like";
echo $string1;
echo "
";
echo $string2;
echo "
";
echo $string3;
?>
結(jié)果
Notice: Undefined variable: like in /54/750/IGfP/index.php on line 6
慕課網(wǎng),I love you!
慕課網(wǎng),$love
conb,
怎么會(huì)報(bào)錯(cuò)
2016-11-26
$like這個(gè)變量你沒(méi)有賦值,系統(tǒng)找不到,所以會(huì)報(bào)錯(cuò);