summaryrefslogtreecommitdiff
path: root/ext/standard/php_array.h
diff options
context:
space:
mode:
authorEnno Woortmann <enno.woortmann@eventim.de>2018-07-17 10:29:55 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2018-07-17 11:31:00 +0200
commit50516a6e1f357f63324ec76e26623f2a7185bd4f (patch)
treeb02395bc0f298d68c85da15ca0ef27a0660f25b6 /ext/standard/php_array.h
parent79a27ccf3f62e25f3ce5254dbce4cd631fb4e735 (diff)
downloadphp-git-50516a6e1f357f63324ec76e26623f2a7185bd4f.tar.gz
Add implementation and tests for new methods - array_key_first(array $a) Returns the key of the first element or null - array_key_last(array $a) Returns the key of the last element or null
Diffstat (limited to 'ext/standard/php_array.h')
-rw-r--r--ext/standard/php_array.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/php_array.h b/ext/standard/php_array.h
index b438dd64f1..f227365a1f 100644
--- a/ext/standard/php_array.h
+++ b/ext/standard/php_array.h
@@ -69,6 +69,8 @@ PHP_FUNCTION(array_merge_recursive);
PHP_FUNCTION(array_replace);
PHP_FUNCTION(array_replace_recursive);
PHP_FUNCTION(array_keys);
+PHP_FUNCTION(array_key_first);
+PHP_FUNCTION(array_key_last);
PHP_FUNCTION(array_values);
PHP_FUNCTION(array_count_values);
PHP_FUNCTION(array_column);