#單引號(hào)和雙引號(hào)的區(qū)別

常用轉(zhuǎn)義符
\\就是表示它本身。
單引號(hào)只能解析\' 和\\兩個(gè)轉(zhuǎn)義符,而雙引號(hào)能解析所有轉(zhuǎn)義符。。
單引號(hào)不會(huì)解析局部變量而
雙引號(hào)會(huì)
如
$name = 'hello';
echo "the $name";
會(huì)輸出 the hello
而如果是單引號(hào)
$name = 'hello';
echo 'the $name';
會(huì)輸出 the $name