Parsing Parameters
Advanced PHP
2025-01-16
55
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.