OT - Bizarre PHP problem/bug

Michael Torrie torriem at gmail.com
Mon Nov 22 17:42:28 MST 2010

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.

More information about the PLUG mailing list