Arquivos
hhvm/hphp/test/vm/user_func.php
T
Jordan Delong 363d1bb20f Code move src/ -> hphp/
This change is mostly for FB internal organizational reasons.
Building is not effected beyond the fact that the target now
lands in hphp/hhvm/hhvm rather than src/hhvm/hhvm.
2013-02-11 02:10:41 -08:00

25 linhas
266 B
PHP

<?
function foo($a) {
print "foo $a\n";
}
function bar(&$a) {
$a = 2;
return $a;
}
function baz($a) {
return 2;
}
$a = array(1, 2);
array_map("foo", $a);
$b = array(1);
array_walk($b, "bar");
var_dump($b);
$a = call_user_func("baz", $a);
var_dump($a);