Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
PHP natcasesort() Function
SUBMITTED BY:
henry1874w
DATE:
June 27, 2017, 5:06 p.m.
FORMAT:
Text only
SIZE:
279 Bytes
Raw
Download
Tweet
HITS:
381
Go to comments
Report
<?php
$temp_files = array("temp15.txt","Temp10.txt",
"temp1.txt","Temp22.txt","temp2.txt");
natsort($temp_files);
echo "Natural order: ";
print_r($temp_files);
echo "<br />";
natcasesort($temp_files);
echo "Natural order case insensitve: ";
print_r($temp_files);
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus