RETURN_BOOL(memcmp(ZSTR_VAL(haystack), ZSTR_VAL(needle), ZSTR_LEN(needle)) == 0);
}
+/* }}} */
/* {{{ proto bool str_ends_with(string haystack, string needle)
Checks if haystack ends with needle */
ZSTR_VAL(haystack) + ZSTR_LEN(haystack) - ZSTR_LEN(needle),
ZSTR_VAL(needle), ZSTR_LEN(needle)) == 0);
}
+/* }}} */
/* {{{ proto string strchr(string haystack, string needle)
An alias for strstr */
}
/* }}} */
-
/* {{{ proto array|int str_word_count(string str, [int format [, string charlist]])
Counts the number of words inside a string. If format of 1 is specified,
then the function will return an array containing all the words
}
/* }}} */
-
/* {{{ proto string utf8_encode(string data)
Encodes an ISO-8859-1 string to UTF-8 */
PHP_FUNCTION(utf8_encode)