fork(1) download
 'aap', 'n' => 'noot', 'm' => 'mies'), 
			array('a' => 'ding', 'b' => 'flof', 'c' => 'bips'), 
			array( 'd' => 'do', 'e' => 're', 'c' => 'mi') 
		);
	
		$func = array( $this, '_user_func' );
		
		var_dump($arr);	// BEFORE WALK
		array_walk_recursive($arr, $func);
		var_dump($arr);	// AFTER WALK
	}

	/**
	 *	Does something to a row from an array (notice the reference)
	 */
	private function _user_func( &$rowValue, $rowIndex )
	{
		$rowValue = 'replaced';
	}
}

$test = new Test();
$test->index();
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
array(3) {
  [0]=>
  array(3) {
    ["a"]=>
    string(3) "aap"
    ["n"]=>
    string(4) "noot"
    ["m"]=>
    string(4) "mies"
  }
  [1]=>
  array(3) {
    ["a"]=>
    string(4) "ding"
    ["b"]=>
    string(4) "flof"
    ["c"]=>
    string(4) "bips"
  }
  [2]=>
  array(3) {
    ["d"]=>
    string(2) "do"
    ["e"]=>
    string(2) "re"
    ["c"]=>
    string(2) "mi"
  }
}
array(3) {
  [0]=>
  array(3) {
    ["a"]=>
    string(8) "replaced"
    ["n"]=>
    string(8) "replaced"
    ["m"]=>
    string(8) "replaced"
  }
  [1]=>
  array(3) {
    ["a"]=>
    string(8) "replaced"
    ["b"]=>
    string(8) "replaced"
    ["c"]=>
    string(8) "replaced"
  }
  [2]=>
  array(3) {
    ["d"]=>
    string(8) "replaced"
    ["e"]=>
    string(8) "replaced"
    ["c"]=>
    string(8) "replaced"
  }
}