RE: [PHP] sorting
| From: | Ford, Mike [LSS] | Date: | Mon, 20 Oct 2003 12:52:57 +0000 |
| Subject: | RE: [PHP] sorting | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-166744@lists.php.net to get a copy of this message | ||
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: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211