<?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>Comments on: PHP Echo Vs Print</title>
	<atom:link href="http://www.learnphponline.com/php-basics/php-echo-vs-print/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learnphponline.com/php-basics/php-echo-vs-print</link>
	<description>Learn PHP Online</description>
	<lastBuildDate>Fri, 03 Sep 2010 17:39:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: k2a</title>
		<link>http://www.learnphponline.com/php-basics/php-echo-vs-print/comment-page-1#comment-3295</link>
		<dc:creator>k2a</dc:creator>
		<pubDate>Fri, 03 Sep 2010 17:39:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=24#comment-3295</guid>
		<description>@Nicolas Connault
I took the code from http://pastie.org/523020 and I get much different results than they do.  0.043325901031494 for period concatenation and 0.034106969833374 with commas.  Not sure where they get the 1.071463108062710 for commas. Using their test, I found commas to be faster.</description>
		<content:encoded><![CDATA[<p>@Nicolas Connault<br />
I took the code from <a href="http://pastie.org/523020" rel="nofollow">http://pastie.org/523020</a> and I get much different results than they do.  0.043325901031494 for period concatenation and 0.034106969833374 with commas.  Not sure where they get the 1.071463108062710 for commas. Using their test, I found commas to be faster.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prtk</title>
		<link>http://www.learnphponline.com/php-basics/php-echo-vs-print/comment-page-1#comment-2475</link>
		<dc:creator>prtk</dc:creator>
		<pubDate>Mon, 05 Jul 2010 03:52:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=24#comment-2475</guid>
		<description>if we use print(&quot;hello&quot;+5);
then output will be 5 only bcoz it take only 1 argument.

But with echo we can do like this:-
$a=5;
echo &quot;hello&quot;.$a;

output will be hello5.
+919479727024</description>
		<content:encoded><![CDATA[<p>if we use print(&#8220;hello&#8221;+5);<br />
then output will be 5 only bcoz it take only 1 argument.</p>
<p>But with echo we can do like this:-<br />
$a=5;<br />
echo &#8220;hello&#8221;.$a;</p>
<p>output will be hello5.<br />
+919479727024</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Hundt</title>
		<link>http://www.learnphponline.com/php-basics/php-echo-vs-print/comment-page-1#comment-2390</link>
		<dc:creator>Tom Hundt</dc:creator>
		<pubDate>Tue, 29 Jun 2010 17:06:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=24#comment-2390</guid>
		<description>Hmm, for some reason, when I try Nicholas&#039;s comma-vs-concat test, the commas are consistently (slightly) faster.  Also I had to add &#039;flush();&#039; at the end of the PHP line.  (php 5.2.0 on SuSE 10.2)

php -d implicit_flush=off -r &#039;$s=microtime(true); for($i=0;$i&lt;100000;$i++) echo &quot;omgwtf&quot;,&quot;bbq&quot;,&quot;\n&quot;; echo microtime(true)-$s; flush();&#039; &#124; fgrep -v &quot;omg&quot;
0.069497108459473

php -d implicit_flush=off -r &#039;$s=microtime(true); for($i=0;$i&lt;100000;$i++) echo &quot;omgwtf&quot;.&quot;bbq&quot;.&quot;\n&quot;; echo microtime(true)-$s; flush();&#039; &#124; fgrep -v &quot;omg&quot;
0.07445502281189</description>
		<content:encoded><![CDATA[<p>Hmm, for some reason, when I try Nicholas&#8217;s comma-vs-concat test, the commas are consistently (slightly) faster.  Also I had to add &#8216;flush();&#8217; at the end of the PHP line.  (php 5.2.0 on SuSE 10.2)</p>
<p>php -d implicit_flush=off -r &#8216;$s=microtime(true); for($i=0;$i&lt;100000;$i++) echo &quot;omgwtf&quot;,&quot;bbq&quot;,&quot;\n&quot;; echo microtime(true)-$s; flush();&#039; | fgrep -v &quot;omg&quot;<br />
0.069497108459473</p>
<p>php -d implicit_flush=off -r &#039;$s=microtime(true); for($i=0;$i&lt;100000;$i++) echo &quot;omgwtf&quot;.&quot;bbq&quot;.&quot;\n&quot;; echo microtime(true)-$s; flush();&#039; | fgrep -v &quot;omg&quot;<br />
0.07445502281189</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajit</title>
		<link>http://www.learnphponline.com/php-basics/php-echo-vs-print/comment-page-1#comment-2273</link>
		<dc:creator>Ajit</dc:creator>
		<pubDate>Thu, 17 Jun 2010 14:44:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=24#comment-2273</guid>
		<description>Yes you are right but instead of (,) use (.) and it Will add the statements.</description>
		<content:encoded><![CDATA[<p>Yes you are right but instead of (,) use (.) and it Will add the statements.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Narendra</title>
		<link>http://www.learnphponline.com/php-basics/php-echo-vs-print/comment-page-1#comment-2094</link>
		<dc:creator>Narendra</dc:creator>
		<pubDate>Mon, 17 May 2010 02:12:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=24#comment-2094</guid>
		<description>I don&#039;t think this is the reason why most developers use echo.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think this is the reason why most developers use echo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vasanth</title>
		<link>http://www.learnphponline.com/php-basics/php-echo-vs-print/comment-page-1#comment-1987</link>
		<dc:creator>vasanth</dc:creator>
		<pubDate>Tue, 27 Apr 2010 07:03:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=24#comment-1987</guid>
		<description>good tutorial</description>
		<content:encoded><![CDATA[<p>good tutorial</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nelson</title>
		<link>http://www.learnphponline.com/php-basics/php-echo-vs-print/comment-page-1#comment-1907</link>
		<dc:creator>Nelson</dc:creator>
		<pubDate>Tue, 13 Apr 2010 08:41:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=24#comment-1907</guid>
		<description>Thanks! :D</description>
		<content:encoded><![CDATA[<p>Thanks! <img src='http://www.learnphponline.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BMFNC</title>
		<link>http://www.learnphponline.com/php-basics/php-echo-vs-print/comment-page-1#comment-1893</link>
		<dc:creator>BMFNC</dc:creator>
		<pubDate>Sat, 10 Apr 2010 02:02:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=24#comment-1893</guid>
		<description>I use print because I don&#039;t know of an echo equivalent for print_r() which is exceedingly helpful for troubleshooting purposes.  Using echo for strings but then print_r() for arrays feels awkward to me.</description>
		<content:encoded><![CDATA[<p>I use print because I don&#8217;t know of an echo equivalent for print_r() which is exceedingly helpful for troubleshooting purposes.  Using echo for strings but then print_r() for arrays feels awkward to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Satılık Yat</title>
		<link>http://www.learnphponline.com/php-basics/php-echo-vs-print/comment-page-1#comment-1877</link>
		<dc:creator>Satılık Yat</dc:creator>
		<pubDate>Mon, 05 Apr 2010 09:26:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=24#comment-1877</guid>
		<description>There is a function which return myurl.com

I want to add myurl.com/d=d

But function echo result I can not get it  how can I do that.?</description>
		<content:encoded><![CDATA[<p>There is a function which return myurl.com</p>
<p>I want to add myurl.com/d=d</p>
<p>But function echo result I can not get it  how can I do that.?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sims</title>
		<link>http://www.learnphponline.com/php-basics/php-echo-vs-print/comment-page-1#comment-1766</link>
		<dc:creator>sims</dc:creator>
		<pubDate>Wed, 10 Mar 2010 08:18:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.learnphponline.com/?p=24#comment-1766</guid>
		<description>@Nicolas Connault
Nice one about the dot vs. comma. No need to rewrite anything.</description>
		<content:encoded><![CDATA[<p>@Nicolas Connault<br />
Nice one about the dot vs. comma. No need to rewrite anything.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
