Home
last modified time | relevance | path

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

/PHP-5.4/ext/standard/tests/array/
H A Darray_unshift_error.phpt2 Test array_unshift() function : error conditions
5 /* Prototype : int array_unshift(array $array, mixed $var [, mixed ...])
10 echo "*** Testing array_unshift() : error conditions ***\n";
13 echo "\n-- Testing array_unshift() function with Zero arguments --\n";
14 var_dump( array_unshift() );
16 // Testing array_unshift with one less than the expected number of arguments
19 var_dump( array_unshift($array) );
23 *** Testing array_unshift() : error conditions ***
25 -- Testing array_unshift() function with Zero arguments --
27 Warning: array_unshift() expects at least 2 parameters, 0 given in %s on line %d
[all …]
H A Darray_unshift_variation1.phpt2 Test array_unshift() function : usage variations - unexpected values for 'array' argument
5 /* Prototype : int array_unshift(array $array, mixed $var [, mixed ...])
11 * Testing the behavior of array_unshift() by giving values
15 echo "*** Testing array_unshift() : unexpected values for \$array argument ***\n";
88 // loop through each element of $arrays to test the functionality of array_unshift()
97 var_dump( array_unshift($temp_array, $var) );
106 var_dump( array_unshift($temp_array, $var, "hello", 'world') );
119 *** Testing array_unshift() : unexpected values for $array argument ***
203 Warning: array_unshift() expects parameter 1 to be array, null given in %s on line %d
207 Warning: array_unshift() expects parameter 1 to be array, null given in %s on line %d
[all …]
H A Darray_unshift_basic1.phpt2 Test array_unshift() function : basic functionality - array with default keys for 'array' argument
5 /* Prototype : int array_unshift(array $array, mixed $var [, mixed ...])
11 * Testing array_unshift() by giving array with default keys for $array argument
14 echo "*** Testing array_unshift() : basic functionality with default key array ***\n";
19 // Calling array_unshift() with default argument
23 var_dump( array_unshift($temp_array, 10) );
28 // Calling array_unshift() with optional arguments
32 var_dump( array_unshift($temp_array, 222, "hello", 12.33) );
40 *** 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
5 /* Prototype : int array_unshift(array $array, mixed $var [, mixed ...])
11 * Testing array_unshift() by giving associative arrays for $array argument
14 echo "*** Testing array_unshift() : basic functionality with associative array ***\n";
19 // Calling array_unshift() with default argument
23 var_dump( array_unshift($temp_array, 10) );
28 // Calling array_unshift() with optional arguments
32 var_dump( array_unshift($temp_array, 222, "hello", 12.33) );
40 *** Testing array_unshift() : basic functionality with associative array ***
H A Darray_unshift.phpt2 array_unshift() tests
8 var_dump(array_unshift($a, $s));
10 var_dump(array_unshift($s, $a));
12 var_dump(array_unshift($a, $a));
24 Warning: array_unshift() expects parameter 1 to be array, string given in %s on line %d
H A Darray_unshift_variation6.phpt2 Test array_unshift() function : usage variations - two dimensional arrays for 'array' argument
5 /* Prototype : int array_unshift(array $array, mixed $var [, mixed ...])
11 * Testing the functionality of array_unshift() by giving two-dimensional
16 echo "*** Testing array_unshift() : two dimensional arrays for \$array argument ***\n";
40 var_dump( array_unshift($temp_array, $var) ); // whole 2-d array
49 var_dump( array_unshift($temp_array, $var, "hello", 'world') ); // whole 2-d array
60 var_dump( array_unshift($temp_array, $var) ); // sub array
69 var_dump( array_unshift($temp_array, $var, "hello", 'world') ); // sub array
77 *** Testing array_unshift() : two dimensional arrays for $array argument ***
H A Darray_unshift_object.phpt2 Test array_unshift() function : passing object for 'var' argument
5 /* Prototype : int array_unshift(array $array, mixed $var [, mixed ...])
11 * Testing the functionality of array_unshift() by passing
15 echo "*** Testing array_unshift() : Passing object to \$var argument ***\n";
77 // loop through the various elements of $arrays to check the functionality of array_unshift
86 var_dump( array_unshift($temp_array, $var) );
95 var_dump( array_unshift($temp_array, $var, "hello", 'world') );
105 *** 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
5 /* Prototype : int array_unshift(array $array, mixed $var [, mixed ...])
11 * Testing the functionality of array_unshift() by passing different
16 echo "*** Testing array_unshift() : double quoted strings for \$var argument ***\n";
30 // loop through the various elements of $arrays to test array_unshift()
39 var_dump( array_unshift($temp_array, $var) );
48 var_dump( array_unshift($temp_array, $var, "hello", 'world') );
58 *** 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
5 /* Prototype : int array_unshift(array $array, mixed $var [, mixed ...])
11 * Testing the functionality of array_unshift() by passing different
16 echo "*** Testing array_unshift() : single quoted strings for \$var argument ***\n";
30 // loop through the various elements of $arrays to test array_unshift()
39 var_dump( array_unshift($temp_array, $var) );
48 var_dump( array_unshift($temp_array, $var, "hello", 'world') );
58 *** 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
5 /* Prototype : int array_unshift(array $array, mixed $var [, mixed ...])
11 * Testing the functionality of array_unshift() by passing different
16 echo "*** Testing array_unshift() : associative array with different keys ***\n";
74 // loop through the various elements of $arrays to test array_unshift()
83 var_dump( array_unshift($temp_array, $var) );
92 var_dump( array_unshift($temp_array, $var, "hello", 'world') );
102 *** 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…
7 /* Prototype : int array_unshift(array $array, mixed $var [, mixed ...])
13 * Testing the functionality of array_unshift() by passing different
18 echo "*** Testing array_unshift() : associative array with different values ***\n";
70 // loop through the various elements of $arrays to test array_unshift()
79 var_dump( array_unshift($temp_array, $var) );
88 var_dump( array_unshift($temp_array, $var, "hello", 'world') );
98 *** 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
5 /* Prototype : int array_unshift(array $array, mixed $var [, mixed ...])
11 * Testing the functionality of array_unshift() by passing different
16 echo "*** Testing array_unshift() : heredoc strings for \$var argument ***\n";
70 // loop through the various elements of $arrays to test array_unshift()
79 var_dump( array_unshift($temp_array, $var) );
88 var_dump( array_unshift($temp_array, $var, "hello", 'world') );
98 *** 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
5 /* Prototype : int array_unshift(array $array, mixed $var [, mixed ...])
11 * Testing the behavior of array_unshift() by passing different types of arrays
15 echo "*** Testing array_unshift() : different arrays for \$array argument ***\n";
48 // loop through the various elements of $arrays to test array_unshift()
57 var_dump( array_unshift($temp_array, $var) );
66 var_dump( array_unshift($temp_array, $var, "hello", 'world') );
76 *** 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
5 /* Prototype : int array_unshift(array $array, mixed $var [, mixed ...])
11 * Testing array_unshift() by giving all the possible values for $var argument
14 echo "*** Testing array_unshift() : all possible values for \$var argument ***\n";
94 // loop through each element of $vars to check the functionality of array_unshift()
103 var_dump( array_unshift($temp_array, $var) );
112 var_dump( array_unshift($temp_array, $var, "hello", 'world') );
125 *** Testing array_unshift() : all possible values for $var argument ***
/PHP-5.4/Zend/tests/
H A Darray_unshift_COW.phpt8 array_unshift ($a,$b);
/PHP-5.4/ext/standard/
H A Dphp_array.h64 PHP_FUNCTION(array_unshift);
H A Darray.c2049 PHP_FUNCTION(array_unshift) in PHP_FUNCTION() argument
H A Dbasic_functions.c3303 PHP_FE(array_unshift, arginfo_array_unshift)
/PHP-5.4/ext/phar/tests/files/
H A Dpear2coverage.phar.php605 array_unshift($xdebugs, '');
659 array_unshift($this->source, '');
887 array_unshift($xdebugs, '');
/PHP-5.4/ext/spl/internal/
H A Dspldoublylinkedlist.inc84 array_unshift($this->_llist, $data);
/PHP-5.4/tests/lang/
H A DforeachLoop.012.phpt64 $transform = 'array_unshift($a, "new.$counter");';
H A DforeachLoop.013.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");';

Completed in 54 milliseconds