<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>评论：单引号，双引号，\n的问题</title>
	<atom:link href="http://blog.51yip.com/php/1334.html/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.51yip.com/php/1334.html</link>
	<description>－－一步，二步，三步，N步，二行脚印</description>
	<lastBuildDate>Tue, 07 Jun 2022 01:26:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：Charles</title>
		<link>http://blog.51yip.com/php/1334.html/comment-page-1#comment-781</link>
		<dc:creator>Charles</dc:creator>
		<pubDate>Fri, 30 Sep 2011 13:42:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=1334#comment-781</guid>
		<description>相信你已经知道了，各种语言里都有转义字符这回事情。PHP中，只有双引号中，才会对字符进行转义。单引号则理解为纯字符串。这样就解决了你的各种疑惑。</description>
		<content:encoded><![CDATA[<p>相信你已经知道了，各种语言里都有转义字符这回事情。PHP中，只有双引号中，才会对字符进行转义。单引号则理解为纯字符串。这样就解决了你的各种疑惑。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Deepseath</title>
		<link>http://blog.51yip.com/php/1334.html/comment-page-1#comment-780</link>
		<dc:creator>Deepseath</dc:creator>
		<pubDate>Fri, 30 Sep 2011 05:52:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=1334#comment-780</guid>
		<description>这个不算是怪异吧，PHP的单引号和双引号用法是不一样的。
单引号内的任何字符都会按照字符的原样输出的。
双引号是会进行解析的。
类似：
$variable = &#039;test&#039;;
echo &#039;Value : $variable &#039;;
echo &#039;&#039;;
echo &quot;Value: $variable &quot;;
会输出：
Value : $variable Value: test 
-------------------------------------------
所以基于这个特性，大家都在说单引号的性能要高于双引号（不过，我倒觉得可能影响不大），呵呵，因为单引号是不考虑任何东西的，只是原样输出，而双引号还要进行一下解析。
****************
PS：话说你应该在Chrome浏览器检查一下你的博客留言评论功能这块，呵呵，是看不到验证码文本框后面的问题的，害的俺找了半天，尝试用IE后才发现，呵呵。</description>
		<content:encoded><![CDATA[<p>这个不算是怪异吧，PHP的单引号和双引号用法是不一样的。<br />
单引号内的任何字符都会按照字符的原样输出的。<br />
双引号是会进行解析的。<br />
类似：<br />
$variable = 'test';<br />
echo 'Value : $variable ';<br />
echo '';<br />
echo "Value: $variable ";<br />
会输出：<br />
Value : $variable Value: test<br />
-------------------------------------------<br />
所以基于这个特性，大家都在说单引号的性能要高于双引号（不过，我倒觉得可能影响不大），呵呵，因为单引号是不考虑任何东西的，只是原样输出，而双引号还要进行一下解析。<br />
****************<br />
PS：话说你应该在Chrome浏览器检查一下你的博客留言评论功能这块，呵呵，是看不到验证码文本框后面的问题的，害的俺找了半天，尝试用IE后才发现，呵呵。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：stamhe</title>
		<link>http://blog.51yip.com/php/1334.html/comment-page-1#comment-779</link>
		<dc:creator>stamhe</dc:creator>
		<pubDate>Fri, 30 Sep 2011 03:03:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=1334#comment-779</guid>
		<description>因为单引号不转义字符，保留原始自然字符串。</description>
		<content:encoded><![CDATA[<p>因为单引号不转义字符，保留原始自然字符串。</p>
]]></content:encoded>
	</item>
</channel>
</rss>
