try
$maxlen = max(array_map('strlen', $ary));
More Related Contents:
- PHP create new array by value
- Get first and second element of array [duplicate]
- Undefined Offset Array [closed]
- PHP Multidimensional associative array to HTML table
- count how many duplicate keys are in array of objects?
- How to access and manipulate multi-dimensional array by key names / path?
- Is there a function to extract a ‘column’ from an array in PHP?
- How to add elements to an empty array in PHP?
- PHP Sort Array By SubArray Value
- Using a string path to set nested array data [duplicate]
- I have an array of integers, how do I use each one in a mysql query (in php)? [duplicate]
- How to get random value out of an array?
- Finding the subsets of an array in PHP
- How to combine two arrays together?
- How can I echo or print an array in PHP?
- Get min and max value in PHP Array
- How get all values in a column using PHP?
- how to pass an array in GET in PHP?
- Flatten multidimensional array concatenating keys [duplicate]
- Sort array in PHP by value and maintain index association
- Array to Object and Object to Array in PHP – interesting behaviour
- How to get the last n items in a PHP array as another array?
- Merge two flat indexed arrays of equal size so that values are pushed into the result in an alternating fashion
- Fastest way of deleting a value in a comma separated list
- How to access first level keys of a 2d array with a foreach loop? [duplicate]
- Group multidimensional array data based on two column values and sum values of one column in each group
- Difference between array_push() and $array[] =
- PHP tree structure for categories and sub categories without looping a query
- How to remove values from two arrays that have the same key and value?
- How to count the consecutive duplicate values in an array?