![]() |
echo vs print
What's the difference between Echo and Print?
J. |
Re: echo vs print
In message-id <40d39a93$0$16104$afc38c87@news.optusnet.com.au> ,
James Smith wrote: >What's the difference between Echo and Print? http://www.faqts.com/knowledge_base/...l/aid/1/fid/40 |
Re: echo vs print
"James Smith" <smitro@myrealbox.com> wrote in message news:40d39a93$0$16104$afc38c87@news.optusnet.com.a u... > What's the difference between Echo and Print? > > J. Print is possible only when there's freedom of the press. Otherwise all you can do is echo. |
Re: echo vs print
"James Smith" <smitro@myrealbox.com> wrote in message
news:40d39a93$0$16104$afc38c87@news.optusnet.com.a u... > What's the difference between Echo and Print? One is spelt echo and the other is spelt print otherwise they are pretty much the same, and your choice will depend on what programming languages you used prior to php or what source you learnt php from. |
Re: echo vs print
James Smith wrote:
> What's the difference between Echo and Print? Although both are language constructs, print() can be used as a function. 1 <?php 2 3 $x = 'hello world'; 4 5 if (print($x)) echo 'if (print()) worked'; 6 echo "\n"; 7 if (echo ($x)) echo 'if (echo()) worked'; 8 echo "\n"; 9 10 ?> Here, line 7 gives a parse error. -- USENET would be a better place if everybody read: | to email me: use | http://www.catb.org/~esr/faqs/smart-questions.html | my name in "To:" | http://www.netmeister.org/news/learn2quote2.html | header, textonly | http://www.expita.com/nomime.html | no attachments. | |
| All times are GMT +2. The time now is 02:43 PM. |
Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0