Parsing Parameters
Writing a PHP Extension
2024-11-25
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.