Home
last modified time | relevance | path

Searched refs:input (Results 76 – 100 of 650) sorted by relevance

12345678910>>...26

/php-src/ext/standard/tests/array/
H A Dshuffle_basic2.phpt8 * 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 Darray_product_variation6.phpt7 $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 Darray_sum_variation9.phpt7 $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 Darray_slice_variation9.phpt8 * 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 Darray_walk_object1.phpt6 * 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 Darray_walk_recursive_object1.phpt5 /* 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 Darray_walk_error2.phpt8 $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 Darray_walk_recursive_error2.phpt8 $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 Darray_flip_variation3.phpt2 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 Darray_pad_variation5.phpt8 * 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 Darray_walk_variation3.phpt2 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 Darray_filter_variation9.phpt11 $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 Darray_slice_variation10.phpt11 $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 Darray_values_variation5.phpt11 $input = array ('one' => 'un', 'two' => 'deux', 'three' => 'trois');
14 var_dump($result = array_values($input));
19 echo key($input) . " => " . current ($input) . "\n";
H A Darray_values_variation6.phpt17 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 Denable_post_data_reading_06.phpt2 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 Denable_post_data_reading_05.phpt2 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 Dtest010.phpt2 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 Dbug69144.phpt7 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 Doutput_add_rewrite_var_basic1.phpt86 <form method="get"><input type="hidden" name="&lt;NAME&gt;" value="&lt;VALUE&gt;" /> </form>
87 <form action="./foo.php" method="get"><input type="hidden" name="&lt;NAME&gt;" value="&lt;VALUE&gt;…
88 <form action="//php.net/bar.php" method="get"><input type="hidden" name="&lt;NAME&gt;" value="&lt;V…
91 <form action="//www.php.net/bar.php" method="get"><input type="hidden" name="&lt;NAME&gt;" value="&…
101 <form method="get"><input type="hidden" name="&lt;NAME&gt;" value="&lt;VALUE&gt;" /> </form>
102 <form action="./foo.php" method="get"><input type="hidden" name="&lt;NAME&gt;" value="&lt;VALUE&gt;…
116 <form method="get"><input type="hidden" name="&lt;NAME&gt;" value="&lt;VALUE&gt;" /><input type="hi…
117 <form action="./foo.php" method="get"><input type="hidden" name="&lt;NAME&gt;" value="&lt;VALUE&gt;…
118 …action="//php.net/bar.php" method="get"><input type="hidden" name="&lt;NAME&gt;" value="&lt;VALUE&…
119 …n="http://php.net/bar.php" method="get"><input type="hidden" name="&lt;NAME&gt;" value="&lt;VALUE&…
[all …]
/php-src/ext/session/tests/
H A Dsession_basic3.phpt89 <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 Djson_encode_basic_utf8.phpt2 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 Dphp_hash_crc32.h28 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 Dcreate-test.php66 $input = $output = ""; variable
77 $input .= $in;
116 $input = trim($input); variable
122 $input
/php-src/ext/pdo_mysql/tests/
H A Dbug66141.phpt15 $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);

Completed in 27 milliseconds

12345678910>>...26