- array_map: documentation ( source)
- print_r: documentation ( source)
- array_fill: documentation ( source)
<?php
$input = array(
"foo" => "bar",
"bar" => "foofoofoofoofoofoofoo",
"name" => "name34234242224"
);
$c = array_map("chunk_split", $input, array_fill(0, count($input), 16));
print_r($c);