Home
last modified time | relevance | path

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

12345678910>>...26

/php-src/ext/mbstring/tests/
H A Dgh9535.phpt23 $input = '宛如繁星般宛如皎月般';
26 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
34 $input = '星のように月のように';
37 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
45 $input = 'あaいb';
48 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
56 $input = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA';
61 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
69 $input = '???';
73 $converted_str = mb_convert_encoding($input, $encoding, mb_internal_encoding());
[all …]
/php-src/ext/standard/tests/array/
H A Darray_rand_basic1.phpt6 * Test array_rand() when array with default keys is passed to 'input' argument
12 // Initialise the 'input' and 'num_req' variables
13 $input = array(10, 20, 30, 40, 50, 60, 70);
18 var_dump( array_rand($input,$num_req) );
22 var_dump( array_rand($input) );
H A Darray_change_key_case_variation7.phpt13 $input = array('one' => 1, 'two' => 2, 'ABC' => 'xyz');
15 echo "\n-- \$input argument is a reference to array --\n";
16 $new_input = &$input;
20 var_dump($input);
29 -- $input argument is a reference to array --
H A Darray_sum_variation5.phpt6 * Testing array_sum() with 'input' having reference variables as elements
16 // input array containing elements as reference variables
17 $input = array(
25 var_dump( array_sum($input) );
H A Darray_unique_variation5.phpt10 echo "*** Testing array_unique() : array with duplicate keys for \$input argument ***\n";
13 $input = array( 1 => "one", 2 => "two", 2 => "2", 3 => "three", 1 => "1", "1", "2");
14 var_dump( array_unique($input) );
19 *** Testing array_unique() : array with duplicate keys for $input argument ***
H A Darray_unique_variation7.phpt9 echo "*** Testing array_unique() : array with binary data for \$input argument ***\n";
12 $input = array( b"1", b"hello", "world", "str1" => "hello", "str2" => "world");
14 var_dump( array_unique($input) );
19 *** Testing array_unique() : array with binary data for $input argument ***
H A Darray_pad_variation4.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);
20 var_dump( array_pad($input, $pad_size, $binary) ); // positive 'pad_size'
21 var_dump( array_pad($input, -$pad_size, $binary) ); // negative 'pad_size'
H A Darray_unique_variation8.phpt7 * two dimensional arrays for $input argument.
10 echo "*** Testing array_unique() : two dimensional array for \$input argument ***\n";
13 $input = array(
20 var_dump( array_unique($input, SORT_STRING) );
25 *** Testing array_unique() : two dimensional array for $input argument ***
H A Dshuffle_basic1.phpt8 * changes in the input array by printing the input array
22 // printing the input array with integers before the shuffle operation
23 echo "\n-- input array of integers before shuffle() function is applied --\n";
26 // applying shuffle() function on the input array of integers
35 // printing the input array with strings before the shuffle operation
36 echo "\n-- input array of strings before shuffle() function is applied --\n";
39 // applying shuffle() function on the input array of strings
51 -- input array of integers before shuffle() function is applied --
98 -- input array of strings before shuffle() function is applied --
H A Darray_sum_empty_array.phpt5 $input = [];
8 var_dump(array_sum($input));
11 var_dump(array_reduce($input, fn($carry, $value) => $carry + $value, 0));
H A Darray_product_empty_array.phpt5 $input = [];
8 var_dump(array_product($input));
11 var_dump(array_reduce($input, fn($carry, $value) => $carry * $value, 1));
H A Dpacked_001.phpt18 foreach ($inputs as $input) {
19 print_r(array_keys($input));
20 print_r(array_values($input));
H A Darray_filter_object.phpt5 /* This file uses 'input' array with different types of objects and passes
63 function always_true($input)
69 function always_false($input)
74 // 'input' array containing objects as elements
75 $input = array(
85 var_dump( array_filter($input) );
88 var_dump( array_filter($input, "always_true") );
91 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
6 * Passing different types of array as 'input' argument.
9 function always_false($input)
15 function always_true($input)
20 echo "*** Testing array_filter() : usage variations - different types of array for 'input' argument…
22 // different types of 'input' array
35 // loop through each element of 'input' with default callback
47 *** Testing array_filter() : usage variations - different types of array for 'input' argument***
H A Darray_key_exists_variation7.phpt11 $input = array ('one' => 'un', 'two' => 'deux', 'three' => 'trois');
14 var_dump($result = array_key_exists('one', $input));
17 echo key($input) . " => " . current ($input) . "\n";
H A Darray_flip_variation2.phpt2 Test array_flip() function : usage variations - 'input' array with different keys
6 * Trying different keys in $input array argument
9 echo "*** Testing array_flip() : different keys for 'input' array argument ***\n";
24 $input = array(
61 var_dump( array_flip($input) );
66 *** Testing array_flip() : different keys for 'input' array argument ***
/php-src/ext/standard/tests/strings/
H A Dstr_pad_variation1.phpt12 * and expected type for '$input'
17 //defining '$input' argument
18 $input = "Test string";
22 var_dump( str_pad($input, $extra_large_pad_length) );
28 var_dump( str_pad($input, $php_int_max_pad_length) );
/php-src/ext/filter/tests/
H A Dbug81708.phpt9 $input = "+" . str_repeat("1", 2); // avoid string interning
11 $input,
15 var_dump($input);
/php-src/ext/soap/tests/bugs/
H A Dbug40609.wsdl26input xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" message="axis2:updateMessage" wsaw:Ac…
/php-src/ext/standard/tests/http/http_build_query/
H A Dhttp_build_query_object_basic.phpt6 public $public = "input";
13 // Percent encoded "public=input"
17 string(12) "public=input"
H A Dhttp_build_query_object_nested.phpt6 public $public = "input";
16 // Percent encoded "public[public]=input"
20 string(24) "public%5Bpublic%5D=input"
/php-src/ext/session/tests/
H A Dsession_basic4.phpt57 … method="post"><input type="hidden" name="testvar1" value="testvalue1" /><input type="hidden" name…
61 … method="post"><input type="hidden" name="testvar1" value="testvalue1" /><input type="hidden" name…
/php-src/ext/json/tests/
H A Djson_validate_005.phpt21 foreach ($inputs as $input) {
22 var_dump($input, json_decode($input), json_validate($input));
/php-src/ext/hash/
H A Dhash_joaat.c44 PHP_HASH_API void PHP_JOAATUpdate(PHP_JOAAT_CTX *context, const unsigned char *input, size_t inputL… in PHP_JOAATUpdate() argument
46 context->state = joaat_buf((void *)input, inputLen, context->state); in PHP_JOAATUpdate()
83 unsigned char *input = (unsigned char *)buf; in joaat_buf() local
86 hval += input[i]; in joaat_buf()
H A Dphp_hash_fnv.h54 PHP_HASH_API void PHP_FNV132Update(PHP_FNV132_CTX *context, const unsigned char *input, size_t inpu…
55 PHP_HASH_API void PHP_FNV1a32Update(PHP_FNV132_CTX *context, const unsigned char *input, size_t inp…
59 PHP_HASH_API void PHP_FNV164Update(PHP_FNV164_CTX *context, const unsigned char *input, size_t inpu…
60 PHP_HASH_API void PHP_FNV1a64Update(PHP_FNV164_CTX *context, const unsigned char *input, size_t inp…

Completed in 43 milliseconds

12345678910>>...26