Home
last modified time | relevance | path

Searched refs:input (Results 51 – 75 of 942) sorted by relevance

12345678910>>...38

/PHP-7.2/ext/standard/tests/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) );
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_walk_recursive_variation5.phpt2 Test array_walk_recursive() function : usage variations - 'input' argument containing reference var…
5 /* Prototype : bool array_walk_recursive(array $input, string $funcname [, mixed $userdata])
21 // 'input' array containing references to above variables
22 $input = array(&$value1, array(&$value2, -35), array(&$value3, 0), array(&$value4));
26 * Parameters : $value - values in given input array
27 * $key - keys in given input array
39 var_dump( array_walk_recursive($input, "callback"));
H A Darray_walk_variation5.phpt2 Test array_walk() function : usage variations - 'input' argument containing reference variables
5 /* Prototype : bool array_walk(array $input, string $funcname [, mixed $userdata])
21 // 'input' array containing references to above variables
22 $input = array(&$value1, &$value2, -35, &$value3, 0, &$value4);
26 * Parameters : $value - values in given input array
27 * $key - keys in given input array
39 var_dump( array_walk($input, "callback"));
H A Darray_unique_variation8.phpt5 /* Prototype : array array_unique(array $input)
12 * two dimensional arrays for $input argument.
15 echo "*** Testing array_unique() : two dimensional array for \$input argument ***\n";
18 $input = array(
25 var_dump( array_unique($input, SORT_STRING) );
30 *** Testing array_unique() : two dimensional array for $input argument ***
H A Darray_pad_variation5.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);
29 var_dump( array_pad($input, $pad_size, $pad_value) ); // positive 'pad_value'
30 var_dump( array_pad($input, -$pad_size, $pad_value) ); // negative 'pad_value'
H A Darray_walk_variation4.phpt2 Test array_walk() function : usage variations - 'input' array with subarray
5 /* Prototype : bool array_walk(array $input, string $funcname [, mixed $userdata])
18 * Parameters : $value - values in given 'input' array
19 * $key - keys in given 'input' array
31 $input = array(
39 var_dump( array_walk( $input, "callback"));
H A Darray_filter_object.phpt5 /* Prototype : array array_filter(array $input [, callback $callback])
10 /* This file uses 'input' array with different types of objects and passes
69 function always_true($input)
75 function always_false($input)
80 // 'input' array containing objects as elements
81 $input = array(
91 var_dump( array_filter($input) );
94 var_dump( array_filter($input, "always_true") );
97 var_dump( array_filter($input, "always_false") );
H A Darray_filter_variation3.phpt2 Test array_filter() function : usage variations - Different types of array for 'input' argument
5 /* Prototype : array array_filter(array $input [, callback $callback])
11 * Passing different types of array as 'input' argument.
15 function always_false($input)
21 function always_true($input)
26 echo "*** Testing array_filter() : usage variations - different types of array for 'input' argument…
28 // different types of 'input' array
41 // loop through each element of 'input' with default callback
53 *** Testing array_filter() : usage variations - different types of array for 'input' argument***
H A Darray_flip_variation2.phpt2 Test array_flip() function : usage variations - 'input' array with different keys
5 /* Prototype : array array_flip(array $input)
11 * Trying different keys in $input array argument
14 echo "*** Testing array_flip() : different keys for 'input' array argument ***\n";
29 $input = array(
67 var_dump( array_flip($input) );
72 *** Testing array_flip() : different keys for 'input' array argument ***
H A Darray_pad_error.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
18 $input = array(1, 2);
22 var_dump( array_pad($input, $pad_size, $pad_value, $extra_arg) );
26 $input = array(1, 2);
28 var_dump( array_pad($input, $pad_size) );
29 var_dump( array_pad($input) );
H A Darray_values_basic.phpt5 /* Prototype : array array_values(array $input)
6 * Description: Return just the values from the input array
18 $input = array('zero', 'one', 'two', 'three' => 3, 10 => 'ten');
21 var_dump( array_values($input) );
H A Darray_slice_variation9.phpt5 /* Prototype : array array_slice(array $input, int $offset [, int $length [, bool $preserve_keys]])
13 * 2. $input argument is passed by reference
23 $input = array(3 => &$val1, 2 => &$val2, 1 => &$val3);
24 var_dump(array_slice($input, 1, 2));
28 var_dump(array_slice($input, 1, 2, true));
H A Dshuffle_basic1.phpt13 * changes in the input array by printing the input array
27 // printing the input array with integers before the shuffle operation
28 echo "\n-- input array of integers before shuffle() function is applied --\n";
31 // applying shuffle() function on the input array of integers
40 // printing the input array with strings before the shuffle operation
41 echo "\n-- input array of strings before shuffle() function is applied --\n";
44 // applying shuffle() function on the input array of strings
56 -- input array of integers before shuffle() function is applied --
103 -- input array of strings before shuffle() function is applied --
H A Darray_filter_variation9.phpt5 /* Prototype : array array_filter(array $input [, callback $callback])
16 $input = array(0, 1, -1, 10, 100, 1000, 'Hello', null);
19 var_dump( array_filter($input, 'is_int') );
22 var_dump( array_filter($input, 'chr') );
25 var_dump( array_filter($input, 'echo') );
28 var_dump( array_filter($input, 'exit') );
H A Darray_walk_recursive_variation4.phpt2 Test array_walk_recursive() function : usage variations - 'input' array with subarray
5 /* Prototype : bool array_walk_recursive(array $input, string $funcname [, mixed $userdata])
18 * Parameters : $value - values in given 'input' array
19 * $key - keys in given 'input' array
31 $input = array(
39 var_dump( array_walk_recursive( $input, "callback"));
H A Darray_flip_variation3.phpt2 Test array_flip() function : usage variations - 'input' argument with different valid values
5 /* Prototype : array array_flip(array $input)
11 * In 'input' array argument, values are expected to be valid keys i.e. string/integer
15 echo "*** Testing array_flip() : different valid values in 'input' array argument ***\n";
29 $input = array(
66 var_dump( array_flip($input) );
71 *** Testing array_flip() : different valid values in 'input' array argument ***
H A Darray_walk_variation3.phpt2 Test array_walk() function : usage variations - 'input' array with different values
5 /* Prototype : bool array_walk(array $input, string $funcname [, mixed $userdata])
11 * Testing array_walk() with following types of 'input' arrays:
19 * $key - keys in given input array
28 echo "*** Testing array_walk() : 'input' array with different values***\n";
30 // different arrays as input
65 *** Testing array_walk() : 'input' array with different values***
/PHP-7.2/ext/soap/tests/interop/Round4/GroupH/
H A Dround4_groupH_complex_rpcenc.inc4 function echoSOAPStructFault($input) {
5 …return new SoapFault("Server", "Fault in response to 'echoSOAPStructFault'.", null, $input, "Compl…
8 function echoBaseStructFault($input) {
9 …return new SoapFault("Server", "Fault in response to 'echoBaseStructFault'.", null, $input, "Compl…
12 function echoExtendedStructFault($input) {
13 …return new SoapFault("Server", "Fault in response to 'echoExtendedStructFault'.", null, $input, "C…
/PHP-7.2/ext/standard/
H A Dpack.c721 char *format, *input; in PHP_FUNCTION() local
736 input = ZSTR_VAL(inputarg); in PHP_FUNCTION()
745 input += offset; in PHP_FUNCTION()
936 if (input[inputpos + len] != padn in PHP_FUNCTION()
937 && input[inputpos + len] != pads in PHP_FUNCTION()
938 && input[inputpos + len] != padt in PHP_FUNCTION()
939 && input[inputpos + len] != padc in PHP_FUNCTION()
940 && input[inputpos + len] != padl in PHP_FUNCTION()
964 if (input[inputpos + s] == pad) in PHP_FUNCTION()
1070 issigned = input[inputpos] & 0x80; in PHP_FUNCTION()
[all …]
/PHP-7.2/ext/soap/tests/bugs/
H A Dbug40609.wsdl26input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="axis2:updateMessage" wsaw:Ac…
/PHP-7.2/ext/standard/tests/strings/
H A Dparse_str_basic2.phpt2 Test parse_str() function : non-default arg_separator.input specified
4 arg_separator.input = "/"
12 echo "*** Testing parse_str() : non-default arg_separator.input specified ***\n";
21 *** Testing parse_str() : non-default arg_separator.input specified ***
/PHP-7.2/ext/session/tests/
H A Dsession_basic3.phpt93 <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>
217 <input type="text" name="test1"></input>
320 <input type="text" name="test1"></input>
324 <input type="text" name="test1"></input>
[all …]
/PHP-7.2/ext/hash/
H A Dhash_joaat.c44 PHP_HASH_API void PHP_JOAATUpdate(PHP_JOAAT_CTX *context, const unsigned char *input, unsigned int … in PHP_JOAATUpdate() argument
46 context->state = joaat_buf((void *)input, inputLen, context->state); in PHP_JOAATUpdate()
78 unsigned char *input = (unsigned char *)buf; in joaat_buf() local
81 hval += input[i]; in joaat_buf()

Completed in 57 milliseconds

12345678910>>...38