Lines Matching refs:array
2 Test array_reverse() function : usage variations - two dimensional arrays for 'array' argument
5 /* Prototype : array array_reverse(array $array [, bool $preserve_keys])
6 * Description: Return input as a new array with the order of the entries reversed
7 * Source code: ext/standard/array.c
11 * testing the functionality of array_reverse() by giving 2-D arrays for $array argument
17 $two_dimensional_array = array(
19 // associative array
20 array('color' => 'red', 'item' => 'pen', 'place' => 'LA'),
22 // numeric array
23 array(1, 2, 3, 4, 5),
26 array('a' => 'green', 'red', 'brown', 33, 88, 'orange', 'item' => 'ball')
32 var_dump( array_reverse($two_dimensional_array) ); // whole array
33 var_dump( array_reverse($two_dimensional_array[1]) ); // sub array
37 // whole array
40 // sub array
49 array(3) {
51 array(7) {
68 array(5) {
81 array(3) {
90 array(5) {
103 array(3) {
105 array(7) {
122 array(5) {
135 array(3) {
144 array(3) {
146 array(7) {
163 array(5) {
176 array(3) {
185 array(5) {
197 array(5) {