note 88220 added to function.natsort
| From: | AJenbo at osu1 dot php dot net | Date: | Thu, 15 Jan 2009 21:33:02 +0000 |
| Subject: | note 88220 added to function.natsort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-149300@lists.php.net to get a copy of this message | ||
natsort might not act like you would expect with zero padding, heres a quick sample.
$array = array('09', '8', '10', '009', '011');
natsort($array);
Array
(
[3] => 009
[4] => 011
[0] => 09
[1] => 8
[2] => 10
)
----
Server IP: 64.71.164.2
Probable Submitter: 87.60.162.6
----
Manual Page -- http://www.php.net/manual/en/function.natsort.php
Edit -- https://master.php.net/note/edit/88220
Del: integrated -- https://master.php.net/note/delete/88220/integrated
Del: useless -- https://master.php.net/note/delete/88220/useless
Del: bad code -- https://master.php.net/note/delete/88220/bad+code
Del: spam -- https://master.php.net/note/delete/88220/spam
Del: non-english -- https://master.php.net/note/delete/88220/non-english
Del: in docs -- https://master.php.net/note/delete/88220/in+docs
Del: other reasons-- https://master.php.net/note/delete/88220
Reject -- https://master.php.net/note/reject/88220
Search -- https://master.php.net/manage/user-notes.php