Parsing Parameters
Writing a PHP Extension
2025-01-31
9
In its simplest form you can call
ZEND_NUM_ARGS()
to check the number of parameters passed to your function.
You can use the
WRONG_PARAM_COUNT
macro to output a generic wrong parameter count warning.