Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Sort an array:
SUBMITTED BY:
henry1874w
DATE:
June 27, 2017, 5:06 p.m.
FORMAT:
Text only
SIZE:
257 Bytes
Raw
Download
Tweet
HITS:
294
Go to comments
Report
<?php
$temp_files = array("temp15.txt","temp10.txt",
"temp1.txt","temp22.txt","temp2.txt");
sort($temp_files);
echo "Standard sorting: ";
print_r($temp_files);
echo "<br>";
natsort($temp_files);
echo "Natural order: ";
print_r($temp_files);
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus