Home
last modified time | relevance | path

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

12

/PHP-5.3/ext/standard/tests/array/
H A Darray_shift_error.phpt2 Test array_shift() function : error conditions - Pass incorrect number of args
5 /* Prototype : mixed array_shift(array &$stack)
11 * Pass incorrect number of arguments to array_shift() to test behaviour
14 echo "*** Testing array_shift() : error conditions ***\n";
17 echo "\n-- Testing array_shift() function with Zero arguments --\n";
18 var_dump( array_shift() );
20 //Test array_shift with one more than the expected number of arguments
24 var_dump( array_shift($stack, $extra_arg) );
29 *** Testing array_shift() : error conditions ***
31 -- Testing array_shift() function with Zero arguments --
[all …]
H A Darray_shift_variation8.phpt2 Test array_shift() function : usage variations - maintaining referenced elements
5 /* Prototype : mixed array_shift(array &$stack)
19 echo "*** Testing array_shift() : usage variations ***\n";
21 // using only array_shift:
22 echo "\n-- Reference result of array_shift: --\n";
25 $b =& array_shift($array);
30 echo "\n-- Reference first element before array_shift: --\n";
34 array_shift($array);
41 *** Testing array_shift() : usage variations ***
43 -- Reference result of array_shift: --
[all …]
H A Darray_shift_variation1.phpt2 Test array_shift() function : usage variations - Pass different data types as $stack arg
5 /* Prototype : mixed array_shift(array &$stack)
11 * Pass different data types as $stack argument to array_shift() to test behaviour
14 echo "*** Testing array_shift() : usage variations ***\n";
84 // loop through each element of $inputs to check the behavior of array_shift()
88 var_dump( array_shift($input) );
97 *** Testing array_shift() : usage variations ***
146 Warning: array_shift() expects parameter 1 to be array, null given in %s on line %d
151 Warning: array_shift() expects parameter 1 to be array, null given in %s on line %d
206 Warning: array_shift() expects parameter 1 to be array, null given in %s on line %d
[all …]
H A Darray_shift_variation5.phpt2 Test array_shift() function : usage variations - call recursively
5 /* Prototype : mixed array_shift(array &$stack)
11 * Use the result of one call to array_shift
12 * as the $stack argument of another call to array_shift()
16 echo "*** Testing array_shift() : usage variations ***\n";
22 var_dump(array_shift(array_shift(array_shift($stack))));
27 $result1 = array_shift($stack);
28 $result2 = array_shift($result1);
29 var_dump(array_shift($result2));
34 *** Testing array_shift() : usage variations ***
H A Darray_shift_variation7.phpt2 Test array_shift() function : usage variations - position of internal pointer
5 /* Prototype : mixed array_shift(array &$stack)
11 * Test that the internal pointer is reset after calling array_shift()
14 echo "*** Testing array_shift() : usage variations ***\n";
18 echo "\n-- Call array_shift() --\n";
19 var_dump($result = array_shift($stack));
27 *** Testing array_shift() : usage variations ***
29 -- Call array_shift() --
H A Darray_shift_basic.phpt2 Test array_shift() function : basic functionality
5 /* Prototype : mixed array_shift(array &$stack)
11 * Test basic functionality of array_shift()
14 echo "*** Testing array_shift() : basic functionality ***\n";
22 var_dump(array_shift($array));
29 *** Testing array_shift() : basic functionality ***
H A Darray_shift_variation6.phpt2 Test array_shift() function : usage variations - Referenced arrays
5 /* Prototype : mixed array_shift(array &$stack)
11 * Test how array_shift when passed:
16 echo "*** Testing array_shift() : usage variations ***\n";
23 var_dump(array_shift($copied_array));
32 var_dump(array_shift($new_array[0]));
41 *** Testing array_shift() : usage variations ***
H A D005.phpt2 Test array_shift() function
5 /* Prototype: mixed array_shift( array &array );
9 array_shift($GLOBALS);
37 var_dump( array_shift() );
40 var_dump( array_shift($number) );
43 var_dump( array_shift($str) );
46 var_dump( array_shift($mixed_array[1],$mixed_array[2]) );
49 var_dump( array_shift($empty_array) );
59 var_dump( array_shift($sub_array) );
77 var_dump( array_shift($mixed_array[1]) );
[all …]
H A Darray_shift_variation4.phpt2 Test array_shift() function : usage variations - multi-dimensional arrays
5 /* Prototype : mixed array_shift(array &$stack)
14 echo "*** Testing array_shift() : usage variations ***\n";
27 var_dump(array_shift($stack_first));
33 var_dump(array_shift($stack_last[2]));
40 *** 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_variation2.phpt2 Test array_shift() function : usage variations - Pass arrays of different data types
5 /* Prototype : mixed array_shift(array &$stack)
11 * Pass arrays where values are of one data type to test behaviour of array_shift()
14 echo "*** Testing array_shift() : usage variations ***\n";
108 // loop through each element of $inputs to check the behavior of array_shift
112 var_dump( array_shift($input) );
123 *** 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
5 /* Prototype : mixed array_shift(array &$stack)
11 * Pass arrays with different data types as keys to test how array_shift() re-assigns keys
14 echo "*** Testing array_shift() : usage variations ***\n";
95 // loop through each element of $inputs to check the behavior of array_shift()
99 var_dump( array_shift($input) );
107 *** Testing array_shift() : usage variations ***
/PHP-5.3/tests/lang/
H A DpassByReference_012.phpt11 var_dump(array_shift(array_shift($stack)));
16 var_dump(array_shift(array_shift($stack)));
/PHP-5.3/scripts/dev/
H A Dextern_c.php36 array_shift($_SERVER["argv"]);
H A Dcheck_parameters.php315 array_shift($split); // the first part isn't relevant
/PHP-5.3/ext/dba/tests/
H A Dskipif.inc14 $handler = array_shift($handlers);
/PHP-5.3/ext/
H A Dext_skel_win32.php24 array_shift($argv);
/PHP-5.3/ext/sqlite/tests/
H A Dsqlite_006.phpt23 $sep = array_shift($args);
H A Dsqlite_closures_002.phpt26 $sep = array_shift($args);
/PHP-5.3/ext/mbstring/tests/
H A Dmb_ereg_search_xxx.phpt23 array_shift( $regs );
/PHP-5.3/ext/standard/
H A Dphp_array.h63 PHP_FUNCTION(array_shift);
/PHP-5.3/ext/soap/interop/
H A Dtest.utility.php130 return array_shift($v);
/PHP-5.3/ext/sybase_ct/tests/
H A Dtest.inc83 return array_shift($a);
/PHP-5.3/ext/date/tests/
H A Dbug20382-2.phpt37 array_shift($test);
/PHP-5.3/ext/spl/internal/
H A Dspldoublylinkedlist.inc67 return array_shift($this->_llist);

Completed in 23 milliseconds

12