[cc lang=”php”]

$lengths = array_map(‘strlen’, $a);

$maxLength = max($lengths);

$index = array_search($maxLength, $lengths);

echo $a[$index];

[/cc]