摘要:
1 PHP_FUNCTION(strpos) 2 { 3 zval *needle; 4 zend_string *haystack; 5 char *found = NULL; 6 char needle_char[2]; 7 zend_long offset = 0; // 搜索位置默认0 8 9 ZEND_PARSE_... 阅读全文
摘要:
1 PHP_FUNCTION(str_pad) 2 { 3 /* Input arguments */ 4 zend_string *input; /* Input string 输入字符串*/ 5 zend_long pad_length; /* Length to pad to 填充到多长.*/ 6 ... 阅读全文
摘要:
1 PHP_FUNCTION(strrev) 2 { 3 zend_string *str; 4 char *e, *p; 5 zend_string *n; 6 7 if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &str) == FAILURE) { 8 return; 9 ... 阅读全文