<?php
function naresh($a, $b)
{
return strnatcmp($a[1], $b[1]);
}
usort($array, 'naresh'); // your array with string value
print_r($array);
?>
function naresh($a, $b)
{
return strnatcmp($a[1], $b[1]);
}
usort($array, 'naresh'); // your array with string value
print_r($array);
?>
No comments:
Post a Comment