Possible Duplicate:
Search and replace inside an associative array
I think this may have been asked before. But I just want a simple solution.
I have an array like this:
Array ( "name" => "Krish",
"age" => "27",
"COD" => ""
)
I want to replace "" with "0"
Its a multidimentional array. The return value should be array too.
Edit: I tried preg_replace and str_replace. For some reason, these did not work for me.