PHP 8.5.0 Alpha 2 available for testing

Voting

: max(eight, zero)?
(Example: nine)

The Note You're Voting On

justin at booleangate dot org
20 years ago
Here's a handy function for natural order sorting on keys.

function natksort($array) {
// Like ksort but uses natural sort instead
$keys = array_keys($array);
natsort($keys);

foreach ($keys as $k)
$new_array[$k] = $array[$k];

return $new_array;
}

<< Back to user notes page

To Top