On 20 October 2003 13:36, Wang Feng wrote:

> Mike,
> 
> So, in PHP, when a string is converted to a number to compare
> with the other
> decimal input, the compiler doesn't look at the ascii set
> table *at all*?
> Instead, it simply convert the string to 0?

Yes, if it doesn't start with a valid string representation of a string --
see
http://uk2.php.net/manual/en/language.types.string.php#language.types.string
.conversion

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to