Home
last modified time | relevance | path

Searched refs:array_unshift (Results 1 – 24 of 24) sorted by relevance

/php-src/ext/standard/tests/array/
H A Darray_unshift_basic1.phpt2 Test array_unshift() function : basic functionality - array with default keys for 'array' argument
6 * Testing array_unshift() by giving array with default keys for $array argument
9 echo "*** Testing array_unshift() : basic functionality with default key array ***\n";
14 // Calling array_unshift() with default argument
18 var_dump( array_unshift($temp_array, 10) );
23 // Calling array_unshift() with optional arguments
27 var_dump( array_unshift($temp_array, 222, "hello", 12.33) );
35 *** Testing array_unshift() : basic functionality with default key array ***
H A Darray_unshift_basic2.phpt2 Test array_unshift() function : basic functionality - associative arrays for 'array' argument
6 * Testing array_unshift() by giving associative arrays for $array argument
9 echo "*** Testing array_unshift() : basic functionality with associative array ***\n";
14 // Calling array_unshift() with default argument
18 var_dump( array_unshift($temp_array, 10) );
23 // Calling array_unshift() with optional arguments
27 var_dump( array_unshift($temp_array, 222, "hello", 12.33) );
35 *** Testing array_unshift() : basic functionality with associative array ***
H A Darray_unshift_empty.phpt2 Test array_unshift() function : prepend array with empty set
8 var_dump( array_unshift($array) );
9 var_dump( array_unshift($array, ...$values) );
H A Darray_unshift.phpt2 array_unshift() tests
8 var_dump(array_unshift($a, $s));
10 var_dump(array_unshift($a, $a));
H A Darray_unshift_variation6.phpt2 Test array_unshift() function : usage variations - two dimensional arrays for 'array' argument
6 * Testing the functionality of array_unshift() by giving two-dimensional
11 echo "*** Testing array_unshift() : two dimensional arrays for \$array argument ***\n";
35 var_dump( array_unshift($temp_array, $var) ); // whole 2-d array
44 var_dump( array_unshift($temp_array, $var, "hello", 'world') ); // whole 2-d array
55 var_dump( array_unshift($temp_array, $var) ); // sub array
64 var_dump( array_unshift($temp_array, $var, "hello", 'world') ); // sub array
72 *** Testing array_unshift() : two dimensional arrays for $array argument ***
H A Darray_unshift_object.phpt2 Test array_unshift() function : passing object for 'var' argument
6 * Testing the functionality of array_unshift() by passing
10 echo "*** Testing array_unshift() : Passing object to \$var argument ***\n";
72 // loop through the various elements of $arrays to check the functionality of array_unshift
81 var_dump( array_unshift($temp_array, $var) );
90 var_dump( array_unshift($temp_array, $var, "hello", 'world') );
100 *** Testing array_unshift() : Passing object to $var argument ***
H A Darray_unshift_variation7.phpt2 Test array_unshift() function : usage variations - double quoted strings for 'var' argument
6 * Testing the functionality of array_unshift() by passing different
11 echo "*** Testing array_unshift() : double quoted strings for \$var argument ***\n";
25 // loop through the various elements of $arrays to test array_unshift()
34 var_dump( array_unshift($temp_array, $var) );
43 var_dump( array_unshift($temp_array, $var, "hello", 'world') );
53 *** Testing array_unshift() : double quoted strings for $var argument ***
H A Darray_unshift_variation8.phpt2 Test array_unshift() function : usage variations - single quoted strings for 'var' argument
6 * Testing the functionality of array_unshift() by passing different
11 echo "*** Testing array_unshift() : single quoted strings for \$var argument ***\n";
25 // loop through the various elements of $arrays to test array_unshift()
34 var_dump( array_unshift($temp_array, $var) );
43 var_dump( array_unshift($temp_array, $var, "hello", 'world') );
53 *** Testing array_unshift() : single quoted strings for $var argument ***
H A Darray_unshift_variation4.phpt2 Test array_unshift() function : usage variations - assoc. array with diff. keys for 'array' argument
6 * Testing the functionality of array_unshift() by passing different
11 echo "*** Testing array_unshift() : associative array with different keys ***\n";
63 // loop through the various elements of $arrays to test array_unshift()
72 var_dump( array_unshift($temp_array, $var) );
81 var_dump( array_unshift($temp_array, $var, "hello", 'world') );
91 *** Testing array_unshift() : associative array with different keys ***
H A Darray_unshift_variation5.phpt2 Test array_unshift() function : usage variations - assoc. array with diff values for 'array' argume…
8 * Testing the functionality of array_unshift() by passing different
13 echo "*** Testing array_unshift() : associative array with different values ***\n";
65 // loop through the various elements of $arrays to test array_unshift()
74 var_dump( array_unshift($temp_array, $var) );
83 var_dump( array_unshift($temp_array, $var, "hello", 'world') );
93 *** Testing array_unshift() : associative array with different values ***
H A Darray_unshift_variation9.phpt2 Test array_unshift() function : usage variations - heredoc strings for 'var' argument
6 * Testing the functionality of array_unshift() by passing different
11 echo "*** Testing array_unshift() : heredoc strings for \$var argument ***\n";
65 // loop through the various elements of $arrays to test array_unshift()
74 var_dump( array_unshift($temp_array, $var) );
83 var_dump( array_unshift($temp_array, $var, "hello", 'world') );
93 *** Testing array_unshift() : heredoc strings for $var argument ***
H A Darray_unshift_variation3.phpt2 Test array_unshift() function : usage variations - different array values for 'array' argument
6 * Testing the behavior of array_unshift() by passing different types of arrays
10 echo "*** Testing array_unshift() : different arrays for \$array argument ***\n";
43 // loop through the various elements of $arrays to test array_unshift()
52 var_dump( array_unshift($temp_array, $var) );
61 var_dump( array_unshift($temp_array, $var, "hello", 'world') );
71 *** Testing array_unshift() : different arrays for $array argument ***
H A Darray_unshift_variation2.phpt2 Test array_unshift() function : usage variations - all possible values for 'var' argument
6 * Testing array_unshift() by giving all the possible values for $var argument
9 echo "*** Testing array_unshift() : all possible values for \$var argument ***\n";
89 // loop through each element of $vars to check the functionality of array_unshift()
98 var_dump( array_unshift($temp_array, $var) );
107 var_dump( array_unshift($temp_array, $var, "hello", 'world') );
120 *** Testing array_unshift() : all possible values for $var argument ***
/php-src/Zend/tests/foreach/
H A Dforeach_016.phpt2 array_unshift() function preserve foreach by reference iterator pointer
9 array_unshift($a, 0, 0, 0, 0, 0, 0, 0, 0);
/php-src/Zend/tests/
H A Darray_unshift_COW.phpt8 array_unshift ($a,$b);
/php-src/ext/opcache/tests/jit/
H A Dbug81249.phpt90 array_unshift($ioQueue, chr($byte));
/php-src/tests/lang/
H A DforeachLoop.012.phpt64 $transform = 'array_unshift($a, "new.$counter");';
H A DforeachLoop.014.phpt66 $transform = 'array_unshift($a, "new.$counter");';
H A DforeachLoop.015.phpt66 $transform = 'array_unshift($a, "new.$counter");';
H A DforeachLoop.013.phpt64 $transform = 'array_unshift($a, "new.$counter");';
/php-src/ext/phar/tests/files/
H A Dpear2coverage.phar605 array_unshift($xdebugs, '');
659 array_unshift($this->source, '');
887 array_unshift($xdebugs, '');
/php-src/ext/standard/
H A Dbasic_functions.stub.php1668 function array_unshift(array &$array, mixed ...$values): int {} function
H A Dbasic_functions_arginfo.h2343 ZEND_FUNCTION(array_unshift);
2936 ZEND_FE(array_unshift, arginfo_array_unshift)
H A Darray.c3719 PHP_FUNCTION(array_unshift) argument

Completed in 64 milliseconds