Re: [PHP] echo VS print : that's a cool behavior !

2007-10-23 Thread Julien Pauli
That's just the case : "too see what happens if ...". I agree that anyone will never meet such a case in everydays' programming. ;-) 2007/10/23, Andrew Ballard <[EMAIL PROTECTED]>: > > On 10/23/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > My bad, print is not a function, and so: > > > >

Re: [PHP] echo VS print : that's a cool behavior !

2007-10-23 Thread Andrew Ballard
On 10/23/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > My bad, print is not a function, and so: > > print( 'toctoc ' ).'hihi '; > > is equivalent to: > > print( 'tocktoc '.'hihi ' ); > Ah. I see. I knew they were optional, but I didn't know that when you include them PHP evaluates ('toc

Re: [PHP] echo VS print : that's a cool behavior !

2007-10-23 Thread Robert Cummings
On Tue, 2007-10-23 at 11:54 -0400, Andrew Ballard wrote: > On 10/23/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-10-23 at 17:34 +0200, Julien Pauli wrote: > > > > > echo "coucou " . print('v ' . print('u ' . print('toctoc ') . 'hihi > > > ') ) . > > > 'tata ' . print('zozo ' . p

RE: [PHP] echo VS print : that's a cool behavior !

2007-10-23 Thread Instruct ICC
> Hello everyone. > > We all know the difference between print and echo, but has someone ever > tried to combine them together ?? > > Right, try this : > > echo "coucou " . print('v ' . print('u ' . print('toctoc ') . 'hihi ') ) . > 'tata ' . print('zozo ' . print('pupu ')); > > > And guess

Re: [PHP] echo VS print : that's a cool behavior !

2007-10-23 Thread tedd
At 11:46 AM -0400 10/23/07, Robert Cummings wrote: On Tue, 2007-10-23 at 17:34 +0200, Julien Pauli wrote: That's not cool, that's a mess. Why doe sit happen the way it does? First off, print() is a function so nesting functions means the innermost functions get processed first, this is why th

Re: [PHP] echo VS print : that's a cool behavior !

2007-10-23 Thread Andrew Ballard
On 10/23/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Tue, 2007-10-23 at 17:34 +0200, Julien Pauli wrote: > > > echo "coucou " . print('v ' . print('u ' . print('toctoc ') . 'hihi > > ') ) . > > 'tata ' . print('zozo ' . print('pupu ')); > > That's not cool, that's a mess. Why doe sit happe

Re: [PHP] echo VS print : that's a cool behavior !

2007-10-23 Thread Robert Cummings
On Tue, 2007-10-23 at 17:34 +0200, Julien Pauli wrote: > echo "coucou " . print('v ' . print('u ' . print('toctoc ') . 'hihi > ') ) . > 'tata ' . print('zozo ' . print('pupu ')); That's not cool, that's a mess. Why doe sit happen the way it does? First off, print() is a function so nesting functi

[PHP] echo VS print : that's a cool behavior !

2007-10-23 Thread Julien Pauli
Hello everyone. We all know the difference between print and echo, but has someone ever tried to combine them together ?? Right, try this :

Re: [PHP] echo vs. print() performance?

2001-12-14 Thread Jim Lucas
ot;Jack Dempsey" <[EMAIL PROTECTED]> To: "Jon Niola" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, December 13, 2001 11:50 PM Subject: Re: [PHP] echo vs. print() performance? > not as a criticism, but this is among the top 10 questions asked ...or used

Re: [PHP] echo vs. print() performance?

2001-12-13 Thread Jack Dempsey
not as a criticism, but this is among the top 10 questions asked ...or used to be for a while...anyway, there's tons of info on the mailing lists, marc.theaimsgroup.com the short answer is that echo is SLIGHTLY faster being a language construct rather than a function...then again, i believe i reme

[PHP] echo vs. print() performance?

2001-12-13 Thread Jon Niola
Someone on this list once mentioned a performance difference between using echo and print(). Is there any evidence to back this up? I am really curious to see if it would make a difference to use one over the other. --Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

Re: [PHP] echo vs print (was echo vs printf)

2001-07-16 Thread Sheridan Saint-Michel
Ummm. I am not sure about either having a return value... but print "you have $points points"; and echo "you have $points points"; have identical output. You can drop a variable into an echo statement with no problem Sheridan - Original Message - From: Steve Brett <[EMAIL PROTECTED

RE: [PHP] echo vs print

2001-02-12 Thread Maxim Maletsky
Right, this is also true Cheers, Maxim Maletsky -Original Message- From: Ben Peter [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 10, 2001 2:10 AM To: Maxim Maletsky Cc: 'Todd Cary'; [EMAIL PROTECTED] Subject: Re: [PHP] echo vs print Maxim Maletsky wrote:

Re: [PHP] echo vs print

2001-02-09 Thread Ben Peter
Maxim Maletsky wrote: > Anyway, " " compatibility. I believe http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] echo vs print

2001-02-08 Thread Philip Olson
On Thu, 8 Feb 2001, Todd Cary wrote: > I have "Profession PHP Programming" and I see that echo() and print() > are used alomst interchangeably. When should each one be used? What is the difference between echo and print ? ---

RE: [PHP] echo vs print

2001-02-08 Thread Maxim Maletsky
) and that is why the yprobably coulnd't stick to one single style : couse they have some deep preferences. Anyway, "mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 12:26 PM To: [EMAIL PROTECTED] Subject: [PHP] echo vs print I have "Profession PHP Programming" and I

RE: [PHP] echo vs print

2001-02-08 Thread Jeff Oien
>From recent posts: http://www.zend.com/zend/tut/using-strings.php also see the doc for print in the PHP manual: http://www.php.net/manual/en/function.print.php Jeff Oien > I have "Profession PHP Programming" and I see that echo() and print() > are used alomst interchangeably. When should each o

[PHP] echo vs print

2001-02-08 Thread Todd Cary
I have "Profession PHP Programming" and I see that echo() and print() are used alomst interchangeably. When should each one be used? Also, I see "http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,