function change(&$element, $key, $mark) { $element = "$mark$key$mark, the $element"; } $dogs = array('A' => 'C', 'B' => 'D', 'X' => 'Z'); array_display($dogs, TRUE); array_walk($dogs, 'change', '*'); array_display($dogs, TRUE); ?>