I can't find anywhere how to make an array with the keys and the character length of that key.
<?php $array = array("ab" => 145, "bassfasdf" => 13, "cdfsa" => 2684); print_r($array); ?>
I would like it to output this:
Array ( [ab] => 2 [bassfasdf] => 9 [cdfsa] => 5 )
Does anyone have any idea on how to do that?