Return to Snippet

Revision: 19796
at October 30, 2009 21:32 by kirik


Initial Code
function natrsort(&$array)
{
    natsort($array);
    $array = array_reverse($array);
}

// Example:
$arr = array("img12.png", "img2.png", "img1.png", "img10.png");
natrsort($arr);
print_r($arr);

Initial URL
http://ca.php.net/manual/en/function.natsort.php#94358

Initial Description
Just a function

Initial Title
Natsort reverse order (natrsort)

Initial Tags

                                

Initial Language
PHP