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:
> >
> >
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
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
> 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
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
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
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
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
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
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
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:
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]
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 ?
---
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
>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
15 matches
Mail list logo