Home
last modified time | relevance | path

Searched refs:ord (Results 1 – 25 of 44) sorted by relevance

12

/PHP-7.3/ext/standard/tests/strings/
H A Dord_basic.phpt13 var_dump(ord("a"));
14 var_dump(ord("z"));
15 var_dump(ord("0"));
16 var_dump(ord("9"));
17 var_dump(ord("!"));
18 var_dump(ord("*"));
19 var_dump(ord("@"));
20 var_dump(ord("\n"));
21 var_dump(ord("\x0A"));
22 var_dump(ord("\xFF"));
[all …]
H A Dord_error.phpt2 Test ord() function : error conditions
6 /* Prototype : int ord ( string $string )
11 echo "*** Testing ord() : error conditions ***\n";
13 echo "\n-- Testing ord() function with no arguments --\n";
14 var_dump( ord() );
18 var_dump( ord(72, $extra_arg) );
23 *** Testing ord() : error conditions ***
25 -- Testing ord() function with no arguments --
27 Warning: ord() expects exactly 1 parameter, 0 given in %s on line %d
30 -- Testing ord() function with more than expected no. of arguments --
[all …]
H A Dchr_ord.phpt2 Test chr() and ord() functions
8 Prototype: int ord ( string $string );
12 for($i=0; $i<256; $i++) echo !ord(chr($i)) == $i;
44 echo "\n*** Testing ord() usage variations ***\n";
48 var_dump( ord($var) );
60 echo "\n*** Testing ord() error conditions ***\n";
62 var_dump( ord() );
64 var_dump( ord($arr_test[0], $arr_test[1]) );
69 *** Testing ord() & chr() basic operations ***
111 *** Testing ord() usage variations ***
[all …]
H A Dord_variation1.phpt2 Test ord() function : usage variations - test values for $string argument
6 /* Prototype : int ord ( string $string )
11 echo "*** Testing ord() function: with unexpected inputs for 'string' argument ***\n";
70 // loop through with each element of the $string array to test ord() function
74 var_dump( ord($input) );
83 *** Testing ord() function: with unexpected inputs for 'string' argument ***
104 Warning: ord() expects parameter 1 to be string, array given in %s on line %d
108 Warning: ord() expects parameter 1 to be string, array given in %s on line %d
112 Warning: ord() expects parameter 1 to be string, array given in %s on line %d
130 Warning: ord() expects parameter 1 to be string, resource given in %s on line %d
H A Dget_html_translation_table_basic10.phpt6 function so($a,$b) { return ord($a) - ord($b); }
H A Dhtmlentities-utf-3.phpt22 $b = ord($seq[0]);
29 if (ord($seq[$n]) < $l[$n][0] || ord($seq[$n]) > $l[$n][1]) {
H A Dexplode.phpt24 var_dump(@explode("==", str_repeat("-=".ord(0)."=-", 10)));
25 var_dump(@explode("=", str_repeat("-=".ord(0)."=-", 10)));
/PHP-7.3/ext/iconv/tests/
H A Dbug69840.phpt9 var_dump(ord($str[0]));
10 var_dump(ord($str[1]));
13 var_dump(ord($str[0]));
14 var_dump(ord($str[1]));
H A Deucjp2iso2022jp.phpt15 printf("%02x", ord($str{$i}));
/PHP-7.3/ext/sodium/tests/
H A Dcrypto_auth.phpt24 $badmsg[0] = \chr(\ord($badmsg[0]) ^ 0x80);
30 \ord($msg[$i]) ^ (
39 $badmac[0] = \chr(\ord($badmac[0]) ^ 0x80);
/PHP-7.3/Zend/tests/multibyte/
H A Dmultibyte_encoding_001.phpt19 printf("%x:%x\n", ord($s[0]), ord($s[1]));
/PHP-7.3/Zend/tests/type_declarations/
H A Dinternal_function_strict_mode.phpt9 var_dump(ord(1));
31 *** Caught ord() expects parameter 1 to be string, int given
/PHP-7.3/ext/intl/tests/
H A Duconverter_oop_callback_return.phpt13 case "\x82": return ord('b');
25 case 0x00F2: return ord("B");
/PHP-7.3/ext/pdo_oci/tests/
H A Dpdo_oci_stream_2b.phpt26 $a_val = ord('a');
37 $b = ord($str1[0]);
38 $b1 = ord($str2[0]);
/PHP-7.3/ext/fileinfo/
H A Dcreate_data_file.php10 printf("0x%02X, ", ord($dta[$i]));
/PHP-7.3/sapi/fpm/tests/
H A Dfcgi.inc365 $nlen = ord($data{$p++});
370 $nlen |= (ord($data{$p++}));
372 $vlen = ord($data{$p++});
377 $vlen |= (ord($data{$p++}));
395 $ret['version'] = ord($data{0});
396 $ret['type'] = ord($data{1});
397 $ret['requestId'] = (ord($data{2}) << 8) + ord($data{3});
398 $ret['contentLength'] = (ord($data{4}) << 8) + ord($data{5});
399 $ret['paddingLength'] = ord($data{6});
400 $ret['reserved'] = ord($data{7});
[all …]
/PHP-7.3/Zend/tests/
H A Dbug60350.phpt6 if (ord($str) == 27) {
H A Dclass_constants_005.phpt7 define ("A", "." . ord(26) . ".");
/PHP-7.3/ext/pcre/tests/
H A Dbug42737.phpt10 var_dump(array_map('ord', $array));
/PHP-7.3/ext/gd/tests/
H A Dbug79615.phpt17 echo decbin(ord(ob_get_clean()[0xA]));
/PHP-7.3/ext/mysqli/tests/
H A Dmysqli_character_set.phpt68 $i, mysqli_real_escape_string($link, chr(ord("a") + $i)))))
89 if ($tmp['label'] != chr(ord("a") + $i))
91 chr(ord("a") + $i), $tmp['label'],
/PHP-7.3/ext/date/tests/
H A Dbug65184.phpt18 printf("%x ", ord($s[$i]));
/PHP-7.3/ext/recode/tests/
H A D002.phpt10 $byte = dechex(ord($ascii{$i}));
H A D001.phpt10 $byte = dechex(ord($ascii{$i}));
/PHP-7.3/ext/mbstring/tests/
H A Dbug52981.phpt11 for ($i = 0; $i < $len; ++$i) echo dechex(ord($upper[$i])) . ' ';

Completed in 37 milliseconds

12