Lines Matching refs:array
5 /* Prototype : array array_chunk(array $array, int $size [, bool $preserve_keys])
6 * Description: Split array into chunks
7 * Chunks an array into size large chunks.
8 * Source code: ext/standard/array.c
14 $input_arrays = array (
15 // array with default keys - numeric values
16 array(1, 2, 3, 4, 5),
18 // array with default keys - string values
19 array('value1', "value2", "value3"),
22 array('key1' => 1, "key2" => 2, "key3" => 3),
25 array(1 => 'one', 2 => "two", 3 => "three"),
27 // array containing elements with/witout keys
28 array(1 => 'one','two', 3 => 'three', 4, "five" => 5)
33 // loop through each element of the array for input
46 array(3) {
48 array(2) {
55 array(2) {
62 array(1) {
69 array(2) {
71 array(2) {
78 array(1) {
85 array(2) {
87 array(2) {
94 array(1) {
101 array(2) {
103 array(2) {
110 array(1) {
117 array(3) {
119 array(2) {
126 array(2) {
133 array(1) {