Quick actions

cmd+k|ctrl+k

Navigation

Languages

test_natsort

Snippet info

Language

Php

Visibility

public

Author

fenghestudio

Created

2019-09-17T03:30:55Z

Updated

2019-09-17T03:30:55Z

<?php

echo "Negative numbers\n";

$negative = array('-5','3','-2','0','-1000','9','1');

print_r($negative);

natsort($negative);

print_r($negative);

echo "Zero padding\n";

$zeros = array('09', '8', '10', '009', '011', '0');
 
print_r($zeros);

natsort($zeros);

print_r($zeros);

?>
INFO