summaryrefslogtreecommitdiff
path: root/ext/standard/php_array.h
diff options
context:
space:
mode:
authorJason Greene <jason@php.net>2001-02-20 05:36:40 +0000
committerJason Greene <jason@php.net>2001-02-20 05:36:40 +0000
commit1888a98a4b57e327e822ab6610739383aa320fbb (patch)
treef6a4523cf6bdf6218d17f45788c63399cdb45bc1 /ext/standard/php_array.h
parentfa8f552fbfa52c4583c43d224916e36f1bbaa44f (diff)
downloadphp-git-1888a98a4b57e327e822ab6610739383aa320fbb.tar.gz
Moved the core of in_array into the function php_search_array, which is called by
in_array and search_array (new) @ Added search_array which works similar to in_array but returns @ the key instead of a boolean. (jason@php.net)
Diffstat (limited to 'ext/standard/php_array.h')
-rw-r--r--ext/standard/php_array.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/php_array.h b/ext/standard/php_array.h
index 76d48ea330..0b2c9dcecc 100644
--- a/ext/standard/php_array.h
+++ b/ext/standard/php_array.h
@@ -49,6 +49,7 @@ PHP_FUNCTION(key);
PHP_FUNCTION(min);
PHP_FUNCTION(max);
PHP_FUNCTION(in_array);
+PHP_FUNCTION(search_array);
PHP_FUNCTION(extract);
PHP_FUNCTION(compact);
PHP_FUNCTION(range);