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