Re: echo or print ?

From: Date: Tue, 17 Apr 2007 07:10:41 +0000
Subject: Re: echo or print ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-253101@lists.php.net to get a copy of this message
Me too. I use echo. Print is a function. There's no significant difference between them. My advice: choose one, and stick with it. On 4/16/07, clive <clive@rttc.co.za> wrote:
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.} -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#253101) next »