From 798ec79319e2d50959588fd19089929044d094dc Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Sun, 21 Oct 2001 07:42:35 +0000 Subject: Motivated by bug #13607 I wrote up a simple array_init() function that lets you quickly create an array and initialize each element to a certain value. @ Add array_init() function (Rasmus) --- ext/standard/php_array.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/standard/php_array.h') diff --git a/ext/standard/php_array.h b/ext/standard/php_array.h index fde51f4dbe..7598f2aaa5 100644 --- a/ext/standard/php_array.h +++ b/ext/standard/php_array.h @@ -52,6 +52,7 @@ PHP_FUNCTION(in_array); PHP_FUNCTION(array_search); PHP_FUNCTION(extract); PHP_FUNCTION(compact); +PHP_FUNCTION(array_init); PHP_FUNCTION(range); PHP_FUNCTION(shuffle); PHP_FUNCTION(array_multisort); -- cgit v1.2.1