[PHP] How to get longest string from array ?
April 25, 2013 Leave a comment
Hope it will save your time. Sometimes in PHP we may need to find the longest string from an array. So you can get this solutions in google but I made a function to make it more usable. It will return maximum lenght, key and the string form that array.
Don’t forget to share!.
Cheers!