Re: Re: echo vs printf
| From: | brother | Date: | Tue, 17 Jul 2001 19:58:36 +0000 |
| Subject: | Re: Re: echo vs printf | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-58328@lists.php.net to get a copy of this message | ||
Steve Brett wrote:
>
> don't echo and printf do different jobs ?
>
> as i understand it echo will dump anything to screen, fprint will accept
> formatted text args like "you owe me %d dollars",$owed_amount) or something
> like that.
>
> i kind of use print by itself (harking back to the old days of basic etc)
> but use echo quite a lot. only use printf when i have to put cash amounts in
> and stuff like that.
>
> Steve
printf ("");
echo "";
print ();
They do the same but why?
The question that drives us (nice quote!) is if we gain any speed to use
one another or if it is too little to be measured.
/brother (now cced to the list too =))