sort array by value length low to high php code example
Example: php sort hight to low
$letters=array("b","a","c");
arsort($letters); //referse sort an array ("c","a","b")
$letters=array("b","a","c");
arsort($letters); //referse sort an array ("c","a","b")