RE: [PHP] Re: echo vs printf

From: Date: Mon, 16 Jul 2001 16:35:30 +0000
Subject: RE: [PHP] Re: echo vs printf
Groups: php.general 
Request: Send a blank email to php-general+get-58080@lists.php.net to get a copy of this message
print, echo, and printf are all available to help different coders code in their own style. So if you're used to just using echo in "shell", or print in perl/basic or perhaps printf, in c/c++/java/asp, there you go. Make a language easy to get stuff out of, and you can have a really quick user base. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: austin@coremetrics.com > -----Original Message----- > From: Steve Brett [mailto:steve.brett@e-mis.com] > Sent: Monday, July 16, 2001 10:38 AM > To: php-general@lists.php.net > Subject: [PHP] Re: echo vs printf > > > 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 > > "Brother" <listmail@persilja.net> wrote in message > news:3B530748.F1718CF8@persilja.net... > > Why should I use printf instead of echo and vice versa? > > > > As for today I use printf mostly but I don't know why. > > > > brother > > Mail: brother@motd.st > > UIN: 4722160 > > Web: http://motd.st > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.general (#58080) next »