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

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

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
If you search archives you'll find some blody battles on this kind of issues, there are some slight differences but work both well and are very similar in performance - so this is the question of style. You see, Professional PHP Programming was written by 5 young guys (including Sascha) and that

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