- array_map: documentation ( source)
- max: documentation ( source)
- min: documentation ( source)
<?php
$arrays = array("generate "," unique "," to "," numbers "," within "," a ");
$new_array = array_map('strlen', $arrays);
echo "The shortest array length is " . min($new_array) .
". The longest array length is " . max($new_array).'.';
?>