1--TEST-- 2Test array_walk_recursive() 3--FILE-- 4<?php 5function foo($value) { 6 echo $value . " foo\n"; 7} 8 9function bar($value) { 10 echo $value . " bar\n"; 11} 12 13$arr = array (1,2,3); 14var_dump (array_walk_recursive ($arr, 'foo')); 15var_dump (array_walk_recursive ($arr, 'bar')); 16 17?> 18--EXPECTF-- 191 foo 202 foo 213 foo 22bool(true) 231 bar 242 bar 253 bar 26bool(true) 27