- array_map: documentation ( source)
- var_dump: documentation ( source)
- array_filter: documentation ( source)
- strtoupper: documentation ( source)
<?php
$array = array(1, "apples",2, "oranges",3, "plums");
$filtered = array_filter($array, 'ctype_alpha');
$callback = function($item) {
return strtoupper($item);
};
$nu = array_map( "strtoupper", $filtered);
var_dump($nu);
?>