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

function foo($a)
{
	var_dump(func_get_args());
}
foo(1, 2, 3);

?>
--EXPECT--
array(3) {
  [0]=>
  int(1)
  [1]=>
  int(2)
  [2]=>
  int(3)
}