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