Afficher un message
Vieux 09/07/2007, 01h33   #2
ZeldorBlat
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Quick question about the echo function

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."

  Réponse avec citation
 
Page generated in 0,05460 seconds with 9 queries