How do I search and replace an entire multi-level array in PHP? As in something like:
$a = array(
'level1' => array(
'level2' => array(
'level3' => 'foo'
)
'level2b' => array(
'level3b' => 'foo'
)
);
So, replace 'foo' with 'bar'.
BACKGROUND: I'm having to do this on a serialized array from a WordPress blog since we're moving this blog to another directory name.