Re: E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

From: Date: Thu, 04 Jan 2007 12:07:17 +0000
Subject: Re: E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-246516@lists.php.net to get a copy of this message
# robert@interjinn.com / 2007-01-04 05:25:58 -0500: > On Thu, 2007-01-04 at 10:54 +0000, Roman Neuhauser wrote: > > > > echo $blah . "\n" is *not* equivalent to printf("%s\n", $blah) > > Hmmmm, could you explain to me how it is different? I would always use > the former unless I specifically needed formatting provided by printf(), > and since there no formatting in the above printf() the echo to the best > of my knowledge is indeed equivalent. That was a early-morning brainfart from me: I was thinking about the real code, which uses return sprintf('%s', $any); It could be return (string) $any; but I prefer the sprintf() for the same reason I prefer C++-style casts in C++ over C-style casts. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991

« previous php.general (#246516) next »