1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 15:38:49 +02:00

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)
This commit is contained in:
Rasmus Lerdorf
2001-10-21 07:42:35 +00:00
parent 884cb737f0
commit 798ec79319
3 changed files with 52 additions and 1 deletions
+1
View File
@@ -755,6 +755,7 @@ function_entry basic_functions[] = {
PHP_FE(array_search, NULL)
PHP_FE(extract, NULL)
PHP_FE(compact, NULL)
PHP_FE(array_init, NULL)
PHP_FE(range, NULL)
PHP_FE(array_multisort, NULL)
PHP_FE(array_push, first_arg_force_ref)