On 11/22/2010 05:28 PM, Ryan Byrd wrote: > The value is given by the initial portion of the string. If the string > starts with valid numeric data, this will be the value used. > Otherwise, the value will be 0 (zero). > > http://www.php.net/manual/en/language.types.string.php#language.types.string.conversion
Ahh, so broken by design. Probably well-intentioned, but still utterly broken. Even old BASIC would throw an error if you tried to convert or cast a string to a number that didn't have any numbers in it. /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
