#include <zend_API.h>
ZEND_NUM_ARGS() returns the number of arguments that have been passed by the caller of the current PHP function.
Number of arguments passed to the current PHP function.