- var_dump: documentation ( source)
- array_walk: documentation ( source)
<?php
$fruits = array("d" => "lemon", "a" => "orange", "b" => "banana", "c" => "apple");
function test(&$item, $key)
{
if($item == 'orange')
$item='';
}
array_walk($fruits, 'test');
var_dump($fruits);