You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
344 B

--TEST--
Test array_walk_recursive()
--FILE--
<?php
function foo($value) {
echo $value . " foo\n";
}
function bar($value) {
echo $value . " bar\n";
}
$arr = array (1,2,3);
var_dump (array_walk_recursive ($arr, 'foo'));
var_dump (array_walk_recursive ($arr, 'bar'));
?>
--EXPECTF--
1 foo
2 foo
3 foo
bool(true)
1 bar
2 bar
3 bar
bool(true)