xref: /PHP-8.4/tests/lang/func_num_args.002.phpt (revision f8d79582)
1--TEST--
2func_num_args with variable number of args
3--FILE--
4<?php
5
6function foo($a)
7{
8    var_dump(func_num_args());
9}
10foo(1, 2, 3);
11
12?>
13--EXPECT--
14int(3)
15