不需要轉(zhuǎn)義字符
不需要轉(zhuǎn)義字符的:
<?php?
$str_string1 = '甲問(wèn):“你在哪里學(xué)的PHP?”';
$str_string2 = "乙毫不猶豫地回答:‘當(dāng)然是慕課網(wǎng)咯!’";
$str_string3 = '甲問(wèn):‘能告訴我網(wǎng)址嗎?’';
$str_string4 = "乙答道:“idcbgp.cn”";
echo $str_string1;
echo "<br />";
echo $str_string2;
echo "<br />";
echo $str_string3;
echo "<br />";
echo $str_string4;
echo "<br />";
?>
2016-04-27
只要是中文格式下的單引號(hào)及雙引號(hào),就不用轉(zhuǎn)義字符