After having checked the number of arguments, you need to get access to the arguments themselves.
Deprecated parameter parsing API: This API is deprecated and superseded by the new ZEND parameter parsing API.