Within a PHP foreach loop I have a person’s name looping. However, outside the loop I want to determine the largest length used within the loop. So I may have 6 names in the loop and most of them may be 6-8 characters long, but one might be 12 characters. So I would like to find the largest amount.
Share
1 Answer