xref: /PHP-5.3/tests/lang/func_get_args.002.phpt (revision 775389cd)
1--TEST--
2func_get_args with variable number of args
3--FILE--
4<?php
5
6function foo($a)
7{
8	var_dump(func_get_args());
9}
10foo(1, 2, 3);
11
12?>
13--EXPECT--
14array(3) {
15  [0]=>
16  int(1)
17  [1]=>
18  int(2)
19  [2]=>
20  int(3)
21}
22
23