PHP shortest/longest string in array

brandon273

New Member
I have an array like this\[code\]$data = http://stackoverflow.com/questions/3713517/array("163", "630", "43", "924", "4", "54");\[/code\]How can I select the smallest and largest values from it according to string length NOT number value. (for this example it is 1 (smallest) and 3 (largest).
 
Back
Top