/2.1/Testing/Tests/Compiler/func_get_args.php
PHP | 23 lines | 17 code | 6 blank | 0 comment | 0 complexity | d31119ead7da89c0e8ab11cd6131a92b MD5 | raw file
Possible License(s): CPL-1.0, GPL-2.0, CC-BY-SA-3.0, MPL-2.0-no-copyleft-exception, Apache-2.0
- [expect php]
- [file]
- <?php
-
- class foo
- {
- function bar()
- {
- $args = func_get_args();
-
- foreach($args as $arg)
- {
- echo $arg;
- }
-
- }
- }
-
- $x = new foo();
- $x->bar('ahoj',13);
-
-
- ?>