Re: echo or print ?

From: Date: Tue, 17 Apr 2007 06:59:38 +0000
Subject: Re: echo or print ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-253100@lists.php.net to get a copy of this message
What do you guys use, and what is the advantage (if ther is any) of print over echo? And I am not talking about print_r or anything, just the regular print. :o)
print returns a result, echo doesn't. This makes echo slightly faster than print, but I doubt theres any significant speed improvement using echo instead of print. I use echo, but thats just because its a habit. -- Regards, Clive. {No electrons were harmed in the creation, transmission or reading of this email. However, many were excited and some may well have enjoyed the experience.}

« previous php.general (#253100) next »