summaryrefslogtreecommitdiff
path: root/tests/lang/func_get_arg.002.phpt
blob: 6ab4f95719a0baf3419b2dac8871d43ea199c055 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
func_get_arg with variable number of args
--FILE--
<?php

function foo($a)
{
	$b = func_get_arg(1);
	var_dump($b);
	$b++;
	var_dump(func_get_arg(1));
	
}
foo(2, 3);
echo "\n";
?>
--EXPECT--
int(3)
int(3)