Home
last modified time | relevance | path

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

/PHP-8.2/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-8.2/Zend/tests/
H A Dforeach_016.phpt2 array_unshift() function precerve foreach by reference iterator pointer
9 array_unshift($a, 0, 0, 0, 0, 0, 0, 0, 0);
H A Darray_unshift_COW.phpt8 array_unshift ($a,$b);
/PHP-8.2/ext/opcache/tests/jit/
H A Dbug81249.phpt91 array_unshift($ioQueue, chr($byte));
/PHP-8.2/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.013.phpt64 $transform = 'array_unshift($a, "new.$counter");';
H A DforeachLoop.015.phpt66 $transform = 'array_unshift($a, "new.$counter");';
/PHP-8.2/ext/phar/tests/files/
H A Dpear2coverage.phar605 array_unshift($xdebugs, '');
659 array_unshift($this->source, '');
887 array_unshift($xdebugs, '');
/PHP-8.2/ext/standard/
H A Dbasic_functions.stub.php998 function array_unshift(array &$array, mixed ...$values): int {} function
H A Dbasic_functions_arginfo.h2259 ZEND_FUNCTION(array_unshift);
2882 ZEND_FE(array_unshift, arginfo_array_unshift)
H A Darray.c3377 PHP_FUNCTION(array_unshift) argument

Completed in 58 milliseconds