Home
last modified time | relevance | path

Searched refs:input (Results 26 – 50 of 690) sorted by relevance

12345678910>>...28

/PHP-7.4/ext/standard/tests/general_functions/
H A Dintval_binary_prefix.phpt35 foreach ($goodInputs as $input) {
37 intval($input, 0)
43 foreach ($goodInputs as $input) {
45 intval($input, 2)
51 foreach ($goodInputs as $input) {
53 intval($input)
59 foreach ($badInputs as $input) {
61 intval($input, 0)
/PHP-7.4/ext/standard/tests/array/
H A Darray_unique_variation6.phpt5 /* Prototype : array array_unique(array $input)
15 echo "*** Testing array_unique() : array with reference variables for \$input argument ***\n";
22 // input array containing elements as reference variables
23 $input = array(
32 var_dump( array_unique($input, SORT_STRING) );
37 *** Testing array_unique() : array with reference variables for $input argument ***
H A Darray_sum_variation6.phpt5 /* Prototype : mixed array_sum(array $input)
11 * Testing array_sum() with associative array as 'input' argument
17 $input = array(0 => 1, 1 => 10, 2 => 0, 3 => -2, 4 => 23.56);
19 var_dump( array_sum($input) );
22 $input = array('a' => 20, "b" => 50, 'c' => 0, 'd' => -30, "e" => 100);
24 var_dump( array_sum($input) );
H A Darray_filter_variation8.phpt17 $input = array(0, 1, -1, 10, 100, 1000, 'Hello', null, true);
21 function callback1($input)
26 var_dump( array_filter($input, 'callback1') );
29 function callback2($input)
34 var_dump( array_filter($input, 'callback2') );
37 function callback3($input)
42 var_dump( array_filter($input, 'callback3') );
45 function callback4($input)
50 var_dump( array_filter($input, 'callback4') );
53 function callback5($input)
[all …]
H A Darray_pad_variation4.phpt5 /* Prototype : array array_pad(array $input, int $pad_size, mixed $pad_value)
6 * Description: Returns a copy of input array padded with pad_value to size pad_size
13 * The $input and $pad_size arguments passed are fixed values.
18 // initialize the $input and $pad_size argument
19 $input = array(1, 2, 3);
25 var_dump( array_pad($input, $pad_size, $binary) ); // positive 'pad_size'
26 var_dump( array_pad($input, -$pad_size, $binary) ); // negative 'pad_size'
H A Darray_rand_basic2.phpt2 Test array_rand() function : basic functionality - with associative array for 'input' argument
5 /* Prototype : mixed array_rand(array $input [, int $num_req])
11 * Test array_rand() when associative array is passed to 'input' argument
17 // Initialise the 'input' and 'num_req' variables
18 $input = array(
28 var_dump( array_rand($input,$num_req) );
32 var_dump( array_rand($input) );
H A Darray_sum_variation5.phpt5 /* Prototype : mixed array_sum(array $input)
11 * Testing array_sum() with 'input' having reference variables as elements
21 // input array containing elements as reference variables
22 $input = array(
30 var_dump( array_sum($input) );
H A Darray_rand_variation5.phpt5 /* Prototype : mixed array_rand(array $input [, int $num_req])
12 * various invalid values are passed to the 'input' and 'req_num'
19 $input = array(
29 var_dump( array_rand($input) ); // with default $num_req value
31 var_dump( array_rand($input, 1) ); // with valid $num_req value
35 var_dump( array_rand($input, 0) ); // with $num_req=0
37 var_dump( array_rand($input, -1) ); // with $num_req=-1
39 var_dump( array_rand($input, -2) ); // with $num_req=-2
40 echo"\n-- With num_req more than number of members in 'input' array --\n";
41 var_dump( array_rand($input, 13) ); // with $num_req=13
[all …]
H A Darray_rand_variation6.phpt2 Test array_rand() function : usage variation - with heredoc string as key in the 'input' array
5 /* Prototype : mixed array_rand(array $input [, int $num_req])
11 * Test behaviour of array_rand() when keys of the 'input' array is heredoc string
14 echo "*** Testing array_rand() : with keys of input array as heredoc strings ***\n";
44 $input = array(
55 var_dump( array_rand($input) );
58 var_dump( array_rand($input, 1) );
61 var_dump( array_rand($input, 3) );
64 var_dump( array_rand($input, 6) );
70 \*\*\* Testing array_rand\(\) : with keys of input array as heredoc strings \*\*\*
H A Darray_unique_variation5.phpt5 /* Prototype : array array_unique(array $input)
15 echo "*** Testing array_unique() : array with duplicate keys for \$input argument ***\n";
18 $input = array( 1 => "one", 2 => "two", 2 => "2", 3 => "three", 1 => "1", "1", "2");
19 var_dump( array_unique($input) );
24 *** Testing array_unique() : array with duplicate keys for $input argument ***
H A Darray_unique_variation7.phpt5 /* Prototype : array array_unique(array $input)
14 echo "*** Testing array_unique() : array with binary data for \$input argument ***\n";
17 $input = array( b"1", b"hello", "world", "str1" => "hello", "str2" => "world");
19 var_dump( array_unique($input) );
24 *** Testing array_unique() : array with binary data for $input argument ***
H A Darray_walk_object1.phpt5 /* Prototype : bool array_walk(array $input, string $funcname [, mixed $userdata])
11 * Pasing object in place of 'input' argument to test object functionatlity
18 * Parameters : $value - values in given input array
19 * $key - keys in given input array
45 // object for 'input' argument
46 $input = new MyClass(10);
48 var_dump( array_walk($input, "callback", 1));
H A Darray_walk_recursive_object1.phpt5 /* Prototype : bool array_walk_recursive(array $input, string $funcname [, mixed $userdata])
10 /* Passing object in place of an 'input' argument to test object functionality
16 * Parameters : $value - values in given input array
17 * $key - keys in given input array
43 // object for 'input' argument
44 $input = new MyClass(10);
46 var_dump( array_walk_recursive($input, "callback", 1));
H A Darray_filter_variation4.phpt5 /* Prototype : array array_filter(array $input [, callback $callback])
21 $input = array(0, -1, 2, 3.4E-3, 'hello', "value", "key" => 4, 'null' => NULL);
29 var_dump( array_filter($input, "callback1") );
32 function callback2($input)
36 var_dump( array_filter($input, "callback2") );
44 var_dump( array_filter($input, "callback3") );
47 function callback4($input)
49 if($input > 0 ) {
57 var_dump( array_filter($input, "callback4") );
H A Darray_values_variation5.phpt5 /* Prototype : array array_values(array $input)
6 * Description: Return just the values from the input array
16 $input = array ('one' => 'un', 'two' => 'deux', 'three' => 'trois');
19 var_dump($result = array_values($input));
24 echo key($input) . " => " . current ($input) . "\n";
H A Darray_values_variation6.phpt5 /* Prototype : array array_values(array $input)
6 * Description: Return just the values from the input array
22 echo "\n-- \$input is an array made up of referenced variables: --\n";
23 $input = array(&$val1, &$val2, &$val3);
24 var_dump($result1 = array_values($input));
35 -- $input is an array made up of referenced variables: --
H A Darray_change_key_case_variation7.phpt5 /* Prototype : array array_change_key_case(array $input [, int $case])
18 $input = array('one' => 1, 'two' => 2, 'ABC' => 'xyz');
20 echo "\n-- \$input argument is a reference to array --\n";
21 $new_input = &$input;
25 var_dump($input);
34 -- $input argument is a reference to array --
H A Darray_rand_basic1.phpt5 /* Prototype : mixed array_rand(array $input [, int $num_req])
11 * Test array_rand() when array with default keys is passed to 'input' argument
17 // Initialise the 'input' and 'num_req' variables
18 $input = array(10, 20, 30, 40, 50, 60, 70);
23 var_dump( array_rand($input,$num_req) );
27 var_dump( array_rand($input) );
/PHP-7.4/sapi/phpdbg/tests/
H A Dstdin_001.phpt2 Test stdin input with breakpoints
15 prompt> [Successful compilation of stdin input]
16 prompt> [Breakpoint #0 added at Standard input code:3]
17 prompt> [Breakpoint #0 at Standard input code:3, hits: 1]
22 prompt> [Breakpoint #0 at Standard input code:3, hits: 1]
/PHP-7.4/ext/standard/tests/strings/
H A Dadd-and-stripslashes.phpt6 $input = '';
8 $input .= chr($i%256);
12 if($input === stripslashes(addslashes($input))) {
/PHP-7.4/ext/spl/tests/
H A Dheap_005.phpt2 SPL: SplMinHeap: large unordered input iterated
5 $input = range(1,100);
6 shuffle($input);
10 foreach($input as $i) {
H A Dheap_006.phpt2 SPL: SplMaxHeap: large unordered input iterated
5 $input = range(1,100);
6 shuffle($input);
10 foreach($input as $i) {
/PHP-7.4/ext/standard/
H A Dphp_fopen_wrapper.c80 php_stream_input_t *input = stream->abstract; in php_stream_input_read() local
88 php_stream_seek(input->body, 0, SEEK_END); in php_stream_input_read()
93 if (!input->body->readfilters.head) { in php_stream_input_read()
96 php_stream_seek(input->body, input->position, SEEK_SET); in php_stream_input_read()
103 input->position += read; in php_stream_input_read()
127 php_stream_input_t *input = stream->abstract; in php_stream_input_seek() local
129 if (input->body) { in php_stream_input_seek()
131 *newoffset = input->position = (input->body)->position; in php_stream_input_seek()
220 php_stream_input_t *input; in php_stream_url_wrap_php() local
229 input = ecalloc(1, sizeof(*input)); in php_stream_url_wrap_php()
[all …]
/PHP-7.4/ext/session/tests/
H A D021.phpt11 url_rewriter.tags="a=href,area=href,frame=src,input=src,form=,fieldset="
33 ini_set("url_rewriter.tags", "a=href,area=href,frame=src,input=src,form=");
42 ini_set("url_rewriter.tags", "a=href,area=href,frame=src,input=src,form=fakeentry");
51 ini_set("url_rewriter.tags", "a=href,fieldset=,area=href,frame=src,input=src");
63 <form action="//php.net/do.php"><input type="hidden" name="PHPSESSID" value="abtest" />
65 <form action="../do.php"><input type="hidden" name="PHPSESSID" value="abtest" />
67 <form action="/do.php"><input type="hidden" name="PHPSESSID" value="abtest" />
69 <form action="/foo/do.php"><input type="hidden" name="PHPSESSID" value="abtest" />
H A Dsession_basic5.phpt124 <input type="text" name="test1"></input>
128 <input type="text" name="test1"></input>
132 <input type="text" name="test1"></input>
136 <input type="text" name="test1"></input>
140 <input type="text" name="test1"></input>
144 <input type="text" name="test1"></input>
148 <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>
[all …]

Completed in 32 milliseconds

12345678910>>...28