Home
last modified time | relevance | path

Searched refs:array_shift (Results 1 – 25 of 40) sorted by relevance

12

/php-src/ext/standard/tests/array/
H A Darray_shift_variation8.phpt2 Test array_shift() function : usage variations - maintaining referenced elements
6 * From a comment left by Traps on 09-Jul-2007 on the array_shift documentation page:
14 echo "*** Testing array_shift() : usage variations ***\n";
16 // using only array_shift:
17 echo "\n-- Reference result of array_shift: --\n";
20 $b =& array_shift($array);
25 echo "\n-- Reference first element before array_shift: --\n";
29 array_shift($array);
36 *** Testing array_shift() : usage variations ***
38 -- Reference result of array_shift: --
[all …]
H A Darray_shift_variation5.phpt2 Test array_shift() function : usage variations - call recursively
6 * Use the result of one call to array_shift
7 * as the $stack argument of another call to array_shift()
11 echo "*** Testing array_shift() : usage variations ***\n";
17 var_dump(array_shift(array_shift(array_shift($stack))));
22 $result1 = array_shift($stack);
23 $result2 = array_shift($result1);
24 var_dump(array_shift($result2));
29 *** Testing array_shift() : usage variations ***
H A Darray_shift_variation7.phpt2 Test array_shift() function : usage variations - position of internal pointer
6 * Test that the internal pointer is reset after calling array_shift()
9 echo "*** Testing array_shift() : usage variations ***\n";
13 echo "\n-- Call array_shift() --\n";
14 var_dump($result = array_shift($stack));
22 *** Testing array_shift() : usage variations ***
24 -- Call array_shift() --
H A Darray_shift_basic.phpt2 Test array_shift() function : basic functionality
6 * Test basic functionality of array_shift()
9 echo "*** Testing array_shift() : basic functionality ***\n";
17 var_dump(array_shift($array));
24 *** Testing array_shift() : basic functionality ***
H A Darray_shift_variation6.phpt2 Test array_shift() function : usage variations - Referenced arrays
6 * Test how array_shift when passed:
11 echo "*** Testing array_shift() : usage variations ***\n";
18 var_dump(array_shift($copied_array));
27 var_dump(array_shift($new_array[0]));
36 *** Testing array_shift() : usage variations ***
H A Dbug22088.phpt2 Bug #22088 (array_shift() leaves next index to be +1 too much)
7 $last = array_shift ($a);
12 $last = array_shift ($a);
H A Darray_shift_variation4.phpt2 Test array_shift() function : usage variations - multi-dimensional arrays
9 echo "*** Testing array_shift() : usage variations ***\n";
22 var_dump(array_shift($stack_first));
28 var_dump(array_shift($stack_last[2]));
35 *** Testing array_shift() : usage variations ***
H A Darray_shift_variation3.phpt2 Test array_shift() function : usage variations - Pass array with different data types as keys
6 * Pass arrays with different data types as keys to test how array_shift() re-assigns keys
9 echo "*** Testing array_shift() : usage variations ***\n";
78 // loop through each element of $inputs to check the behavior of array_shift()
82 var_dump( array_shift($input) );
90 *** Testing array_shift() : usage variations ***
H A Dgh9244.phpt2 Bug GH-9244 (Segfault with array_multisort + array_shift)
8 var_dump(array_shift($items));
H A Darray_shift_variation2.phpt2 Test array_shift() function : usage variations - Pass arrays of different data types
6 * Pass arrays where values are of one data type to test behaviour of array_shift()
9 echo "*** Testing array_shift() : usage variations ***\n";
103 // loop through each element of $inputs to check the behavior of array_shift
107 var_dump( array_shift($input) );
118 *** Testing array_shift() : usage variations ***
H A D005.phpt2 Test array_shift() function
32 var_dump( array_shift($empty_array) );
42 var_dump( array_shift($sub_array) );
60 var_dump( array_shift($mixed_array[1]) );
/php-src/tests/lang/
H A DpassByReference_012.phpt9 var_dump(array_shift(array_shift($stack)));
14 var_dump(array_shift(array_shift($stack)));
/php-src/Zend/tests/foreach/
H A Dforeach_015.phpt2 array_shift() function preserve foreach by reference iterator pointer
8 array_shift($a);
/php-src/Zend/tests/
H A Dbug67169.phpt12 array_shift($array);
13 array_shift($array);
H A Dbug80184.phpt13 while ($callback = array_shift($callbacks) and ($callback() || true));
H A Dbug69758.phpt17 // Can also use array_shift() here.
/php-src/ext/snmp/tests/
H A Dsnmp-object.phpt50 var_dump(array_shift($z));
59 var_dump(array_shift($z));
68 var_dump(array_shift($z));
78 var_dump(array_shift($z));
87 var_dump(array_shift($z));
89 array_shift($z);
91 array_shift($z);
93 array_shift($z);
H A Dsnmp2_real_walk.phpt25 var_dump(array_shift($return));
32 var_dump(array_shift($return));
H A Dsnmprealwalk.phpt25 var_dump(array_shift($return));
32 var_dump(array_shift($return));
/php-src/ext/pdo_pgsql/tests/
H A Dissue78621.inc11 attach($db, array_shift($rounds));
21 attach($db, array_shift($rounds));
/php-src/Zend/tests/closures/
H A Dclosure_047.phpt10 $text = preg_replace( '/(\?)/', array_shift( $params ), $text, 1 );
H A Dclosure_048.phpt9 $text = preg_replace( '/(\?)/', array_shift( $params ), $text, 1 );
/php-src/Zend/tests/type_declarations/
H A Dtyped_properties_067.phpt16 array_shift($obj->it);
/php-src/ext/dba/tests/
H A Dskipif.inc12 $handler = array_shift($handlers);
/php-src/ext/standard/tests/serialize/
H A Dbug78438.phpt31 $levelRoot = array_shift($levelRoots);
70 $node = array_shift($nodes);

Completed in 20 milliseconds

12