/2.0/Tests/Variables/func_get_args.php
# · PHP · 26 lines · 18 code · 3 blank · 5 comment · 0 complexity · 6bb88e9909f40d1af294aa0badf94f36 MD5 · raw file
- [expect php]
- [file]
- <?
- /*
-
- Checks whether references are correctly dereferenced when calling args-aware function by name.
-
- */
-
- function f($a)
- {
- $args = func_get_args();
- var_dump($args);
- $args[0] = 4;
- }
-
- function g()
- {
- $a = 1;
- $f = "f";
- $f($a);
- var_dump($a);
- }
-
- g();
- ?>