summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2001-10-23 18:46:35 +0000
committerRasmus Lerdorf <rasmus@php.net>2001-10-23 18:46:35 +0000
commit72fc6bc4b154b5887deb04a627dbe8f85b152c92 (patch)
tree4a36073927354810b208e602be41e12e85b12e4d /ext/standard/array.c
parent991e30668f78696c8e47ab808996c26fef7c7402 (diff)
downloadphp-git-72fc6bc4b154b5887deb04a627dbe8f85b152c92.tar.gz
As suggested on php-dev, array_fill() is probably a better name for this
function.
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index bcc9370f73..2807129fa0 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -1325,9 +1325,9 @@ PHP_FUNCTION(compact)
}
/* }}} */
-/* {{{ proto array array_init(int start_key, int num, mixed val)
+/* {{{ proto array array_fill(int start_key, int num, mixed val)
Create an array containing num elements starting with index start_key each initialized to val */
-PHP_FUNCTION(array_init)
+PHP_FUNCTION(array_fill)
{
zval **start_key, **num, **val, *newval;
long i;