/php-src/ext/standard/tests/array/ |
H A D | shuffle_basic2.phpt | 8 * changes in the input array by printing the input array 21 // printing the input array before the shuffle operation 22 echo "\n-- input array before shuffle() function is applied --\n"; 25 // applying shuffle() function on the input array 37 -- input array before shuffle() function is applied --
|
H A D | array_product_variation6.phpt | 7 $input = [gmp_init(25), gmp_init(6)]; 10 var_dump(array_product($input)); 13 var_dump(array_reduce($input, fn($carry, $value) => $carry * $value, 1));
|
H A D | array_sum_variation9.phpt | 7 $input = [gmp_init(25), gmp_init(6)]; 10 var_dump(array_sum($input)); 13 var_dump(array_reduce($input, fn($carry, $value) => $carry + $value, 0));
|
H A D | array_slice_variation9.phpt | 8 * 2. $input argument is passed by reference 18 $input = array(3 => &$val1, 2 => &$val2, 1 => &$val3); 19 var_dump(array_slice($input, 1, 2)); 23 var_dump(array_slice($input, 1, 2, true));
|
H A D | array_walk_object1.phpt | 6 * Passing object in place of 'input' argument to test object functionality 32 // object for 'input' argument 33 $input = new MyClass(10); 35 var_dump( array_walk($input, "callback", 1));
|
H A D | array_walk_recursive_object1.phpt | 5 /* Passing object in place of an 'input' argument to test object functionality 30 // object for 'input' argument 31 $input = new MyClass(10); 33 var_dump( array_walk_recursive($input, "callback", 1));
|
H A D | array_walk_error2.phpt | 8 $input = array(1); 21 var_dump( array_walk($input, "callback1") ); 26 var_dump( array_walk($input, "callback2", 4) ); 33 var_dump( @array_walk($input, "callback1") ); 38 var_dump( @array_walk($input, "callback2", 4) ); 45 var_dump( array_walk($input, "callback1", 20, 10) );
|
H A D | array_walk_recursive_error2.phpt | 8 $input = array(1); 21 var_dump( array_walk_recursive($input, "callback1") ); 26 var_dump( array_walk_recursive($input, "callback2", 4) ); 33 var_dump( @array_walk_recursive($input, "callback1") ); 38 var_dump( @array_walk_recursive($input, "callback2", 4) ); 45 var_dump( array_walk_recursive($input, "callback1", 20, 10) );
|
H A D | array_flip_variation3.phpt | 2 Test array_flip() function : usage variations - 'input' argument with different valid values 6 * In 'input' array argument, values are expected to be valid keys i.e. string/integer 10 echo "*** Testing array_flip() : different valid values in 'input' array argument ***\n"; 24 $input = array( 61 var_dump( array_flip($input) ); 66 *** Testing array_flip() : different valid values in 'input' array argument ***
|
H A D | array_pad_variation5.phpt | 8 * The $input and $pad_size arguments passed are fixed values. 13 // initialize the $input and $pad_size argument 14 $input = array(1, 2, 3); 24 var_dump( array_pad($input, $pad_size, $pad_value) ); // positive 'pad_value' 25 var_dump( array_pad($input, -$pad_size, $pad_value) ); // negative 'pad_value'
|
H A D | array_walk_variation3.phpt | 2 Test array_walk() function : usage variations - 'input' array with different values 6 * Testing array_walk() with following types of 'input' arrays: 15 echo "*** Testing array_walk() : 'input' array with different values***\n"; 17 // different arrays as input 52 *** Testing array_walk() : 'input' array with different values***
|
H A D | array_filter_variation9.phpt | 11 $input = array(0, 1, -1, 10, 100, 1000); 14 var_dump( array_filter($input, 'is_int') ); 17 var_dump( array_filter($input, 'chr') ); 21 var_dump( array_filter($input, 'echo') ); 28 var_dump( array_filter($input, 'exit') );
|
H A D | array_slice_variation10.phpt | 11 $input = array ('one' => 'un', 'two' => 'deux', 23 => 'twenty-three', 'zero'); 14 var_dump($result = array_slice($input, 2)); 19 echo key($input) . " => " . current ($input) . "\n";
|
H A D | array_values_variation5.phpt | 11 $input = array ('one' => 'un', 'two' => 'deux', 'three' => 'trois'); 14 var_dump($result = array_values($input)); 19 echo key($input) . " => " . current ($input) . "\n";
|
H A D | array_values_variation6.phpt | 17 echo "\n-- \$input is an array made up of referenced variables: --\n"; 18 $input = array(&$val1, &$val2, &$val3); 19 var_dump($result1 = array_values($input)); 30 -- $input is an array made up of referenced variables: --
|
/php-src/tests/basic/ |
H A D | enable_post_data_reading_06.phpt | 2 enable_post_data_reading: using multiple input streams (more than 8k data) 94 $f1 = fopen("php://input", "r"); 95 $f2 = fopen("php://input", "r");
|
H A D | enable_post_data_reading_05.phpt | 2 enable_post_data_reading: using multiple input streams 13 $f1 = fopen("php://input", "r"); 14 $f2 = fopen("php://input", "r");
|
/php-src/tests/run-test/ |
H A D | test010.phpt | 2 STDIN input 11 use this to input some thing to the php script 14 use this to input some thing to the php script
|
/php-src/ext/standard/tests/strings/ |
H A D | bug69144.phpt | 7 foreach ($tests as $input => $expected) { 8 if ($expected !== ($actual = strtr($input, array("fo" => "", "foobar" => "", "bar" => "")))) { 9 echo "KO `$input` became `$actual` instead of `$expected`\n";
|
/php-src/ext/standard/tests/general_functions/ |
H A D | output_add_rewrite_var_basic1.phpt | 86 <form method="get"><input type="hidden" name="<NAME>" value="<VALUE>" /> </form> 87 <form action="./foo.php" method="get"><input type="hidden" name="<NAME>" value="<VALUE>… 88 <form action="//php.net/bar.php" method="get"><input type="hidden" name="<NAME>" value="<V… 91 <form action="//www.php.net/bar.php" method="get"><input type="hidden" name="<NAME>" value="&… 101 <form method="get"><input type="hidden" name="<NAME>" value="<VALUE>" /> </form> 102 <form action="./foo.php" method="get"><input type="hidden" name="<NAME>" value="<VALUE>… 116 <form method="get"><input type="hidden" name="<NAME>" value="<VALUE>" /><input type="hi… 117 <form action="./foo.php" method="get"><input type="hidden" name="<NAME>" value="<VALUE>… 118 …action="//php.net/bar.php" method="get"><input type="hidden" name="<NAME>" value="<VALUE&… 119 …n="http://php.net/bar.php" method="get"><input type="hidden" name="<NAME>" value="<VALUE&… [all …]
|
/php-src/ext/session/tests/ |
H A D | session_basic3.phpt | 89 <input type="text" name="test1"></input> 189 <input type="text" name="test1"></input> 193 <input type="text" name="test1"></input> 197 <input type="text" name="test1"></input> 201 <input type="text" name="test1"></input> 205 <input type="text" name="test1"></input> 209 <input type="text" name="test1"></input> 213 <input type="text" name="test1"></input> 316 <input type="text" name="test1"></input> 320 <input type="text" name="test1"></input> [all …]
|
/php-src/ext/json/tests/ |
H A D | json_encode_basic_utf8.phpt | 2 Test json_encode() function : basic functionality with UTF8 string input 5 echo "*** Testing json_encode() : basic functionality with UTF-8 input***\n"; 12 *** Testing json_encode() : basic functionality with UTF-8 input***
|
/php-src/ext/hash/ |
H A D | php_hash_crc32.h | 28 PHP_HASH_API void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len); 29 PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len); 30 PHP_HASH_API void PHP_CRC32CUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len);
|
/php-src/sapi/phpdbg/ |
H A D | create-test.php | 66 $input = $output = ""; variable 77 $input .= $in; 116 $input = trim($input); variable 122 $input
|
/php-src/ext/pdo_mysql/tests/ |
H A D | bug66141.phpt | 15 $input = 'Something\', 1 as one, 2 as two FROM dual; -- f'; 17 $quotedInput0 = $db->quote($input); 21 // injection text from some user input 23 $quotedInput1 = $db->quote($input); 27 $quotedInput2 = $db->quote($input);
|