summaryrefslogtreecommitdiff
path: root/ext/standard/php_string.h
diff options
context:
space:
mode:
authorJeroen van Wolffelaar <jeroen@php.net>2001-08-03 22:12:46 +0000
committerJeroen van Wolffelaar <jeroen@php.net>2001-08-03 22:12:46 +0000
commitc2150f7038068fde34c9e26be089de89eecdfc67 (patch)
tree21a0065c9ab03753f389bf2532d0c6841e1a61d1 /ext/standard/php_string.h
parent74b4b08b7b28b00b89bf3015691fbb77666b3f3e (diff)
downloadphp-git-c2150f7038068fde34c9e26be089de89eecdfc67.tar.gz
- Added new parameter to [l|r]trim, to specify _what_ to trim
@- Added optional second parameter to trim, chop and ltrim. You can @ now specify which characters to trim (jeroen)
Diffstat (limited to 'ext/standard/php_string.h')
-rw-r--r--ext/standard/php_string.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/php_string.h b/ext/standard/php_string.h
index 7143ccf3be..63c9d1085e 100644
--- a/ext/standard/php_string.h
+++ b/ext/standard/php_string.h
@@ -112,6 +112,7 @@ PHPAPI char *php_stristr(unsigned char *s, unsigned char *t, size_t s_len, size_
PHPAPI char *php_str_to_str(char *haystack, int length, char *needle,
int needle_len, char *str, int str_len, int *_new_length);
PHPAPI void php_trim(pval *str, pval *return_value, int mode);
+void php_trim2(zval *str, zval *what, zval *return_value, int mode);
PHPAPI void php_strip_tags(char *rbuf, int len, int state, char *allow, int allow_len);
PHPAPI void php_char_to_str(char *str, uint len, char from, char *to, int to_len, pval *result);