xref: /PHP-7.1/tests/lang/func_get_arg.002.phpt (revision 7af945e2)
1--TEST--
2func_get_arg with variable number of args
3--FILE--
4<?php
5
6function foo($a)
7{
8	$b = func_get_arg(1);
9	var_dump($b);
10	$b++;
11	var_dump(func_get_arg(1));
12
13}
14foo(2, 3);
15echo "\n";
16?>
17--EXPECT--
18int(3)
19int(3)
20