You are here: Re: Quick question about the echo function « PHP Language « IT news, forums, messages
Re: Quick question about the echo function

Posted by ZeldorBlat on 07/09/07 00:33

On Jul 8, 7:37 pm, Dilemma <earthly_dil...@hotmail.com> wrote:
> I'm wondering what, if any, the difference between
> echo("blahblahblah"); and echo "blahblahblah"; is.
>
> Is this just a version thing or are there actual
> functional differences?
>
> Thank you.

No difference for the most part. The only difference is if you want
to pass multiple parameters to it, which most people don't do anyway.
>From the manual on echo:

"echo() is not actually a function (it is a language construct), so
you are not required to use parentheses with it. echo() (unlike some
other language constructs) does not behave like a function, so it
cannot always be used in the context of a function. Additionally, if
you want to pass more than one parameter to echo(), the parameters
must not be enclosed within parentheses."

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация