diff --git a/functions/array.xml b/functions/array.xml index 118840c72d..4fd337b87e 100644 --- a/functions/array.xml +++ b/functions/array.xml @@ -1,5 +1,5 @@ - + Array Functions Arrays @@ -335,6 +335,49 @@ $trans = array_flip ($trans); + + + array_init + Initialize an array with values + + + Description + + + array array_init + int start_index + int num + mixed value + + + + array_init returns an array filled with + num entries of the value of the + value parameter, keys starting at the + start_index parameter. + + + + <function>array_init</function> example + +$a = array_init(5, 6, 'banana'); + +/* +$a now has the following entries: + +$a[5] = "banana"; +$a[6] = "banana"; +$a[7] = "banana"; +$a[8] = "banana"; +$a[9] = "banana"; +$a[10] = "banana"; +*/ + + + + + + array_intersect