Re: a simple fix to make
| From: | Philip Olson | Date: | Mon, 02 Jun 2003 15:26:22 +0000 |
| Subject: | Re: a simple fix to make | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969354186@lists.php.net to get a copy of this message | ||
This was fixed awhile ago and even shows up in the online manual,
are you sure about this?
http://www.php.net/natsort
http://bugs.php.net/bug.php?id=23656
I see the following within the manual:
Note: If you're wanting to maintain index/value associations,
consider using uasort($arr, 'strnatcmp').
See also:
http://cvs.php.net/cvs.php/phpdoc/en/reference/array/functions/natsort.xml
Point is: It's fixed, but thanks for the report :)
Regards,
Philip
On Mon, 2 Jun 2003, Richard Bronosky wrote:
> In the file:
> http://www.php.net/manual/en/function.natsort.php
>
> the text:
> Note: If you're wanting to maintain index/value associations, consider
> using usort($arr, 'strnatcmp') .
>
> should be:
> Note: If you're wanting to maintain index/value associations, consider
> using uasort($arr, 'strnatcmp') .
>
>
> Thanks,
>
> --==<< R i c h a r d B r o n o s k y >>==--