On Sat, Jun 8, 2013 at 3:13 AM, Pierre du Plessis wrote:
>
> function my_call_back($key, $value) {
>> return array($value, strlen($value));
>> }
>> $array = str_word_count("PHP is lots of fun!");
>> $array = array_map_key('my_call_back', $array);
>>
>>
>> The result would be the following arra
> function my_call_back($key, $value) {
> return array($value, strlen($value));
> }
> $array = str_word_count("PHP is lots of fun!");
> $array = array_map_key('my_call_back', $array);
>
>
> The result would be the following array:
>
> array(5) {
> ["PHP"]=>
> int(3)
> ["is"]=>
> int(2)