Hi
I want to write a function to get the shortest/longest string lenght from an array. problem is I can’t quite find a way to determine the lenght of elements in order to compare them.I tried using implode() to convert the array to string,but that didn’t really helped me since I didn’t know how to seperate the elements.
so I wrote something like this :
[php] <?php
function f1($input)
{
if(is_array($input))
{
foreach ($input as $value)
?>[/php]
but I’m not sure what’s the next step.
Thanks.