Validate PHP function arguments/parameters.