Boolean:
zend_bool b;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &b) == FAILURE)
	RETURN_FALSE;

Long and double:
long l;
double d;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ld", &l, &d) == FAILURE) {

String:
char *str;
int str_len;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {

Array:
zval *arr;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a", &arr) == FAILURE) {

Resource:
zval *c = NULL
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &c) == FAILURE) {