Re: PHP 4.0 Bug #5722 Updated: sort fails
| From: | Roberto Biancardi | Date: | Fri, 21 Jul 2000 14:23:30 +0000 |
| Subject: | Re: PHP 4.0 Bug #5722 Updated: sort fails | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-25357@lists.php.net to get a copy of this message | ||
thanks, think you know this breaks compatibility with php3.
Bug Database wrote:
> ID: 5722
> Updated by: andrei
> Reported By: biancardi@bware.it
> Status: Closed
> Bug Type: Scripting Engine problem
> Assigned To:
> Comments:
>
> Regular sort function tries to convert strings to numbers before sorting.
> You can control the sort type by passing an optional argument
> to sorting functions:
>
> sort($array, SORT_REGULAR);
> sort($array, SORT_NUMERIC);
> sort($array, SORT_STRING);
>
> Full Bug description available at:
> http://bugs.php.net/version4/?id=5722
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Roberto Biancardi - +39 2 277918.1 - biancardi@bware.it