Searched refs:ord (Results 1 – 25 of 44) sorted by relevance
12
/PHP-7.3/ext/standard/tests/strings/ |
H A D | ord_basic.phpt | 13 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 D | ord_error.phpt | 2 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 D | chr_ord.phpt | 2 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 D | ord_variation1.phpt | 2 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 D | get_html_translation_table_basic10.phpt | 6 function so($a,$b) { return ord($a) - ord($b); }
|
H A D | htmlentities-utf-3.phpt | 22 $b = ord($seq[0]); 29 if (ord($seq[$n]) < $l[$n][0] || ord($seq[$n]) > $l[$n][1]) {
|
H A D | explode.phpt | 24 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 D | bug69840.phpt | 9 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 D | eucjp2iso2022jp.phpt | 15 printf("%02x", ord($str{$i}));
|
/PHP-7.3/ext/sodium/tests/ |
H A D | crypto_auth.phpt | 24 $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 D | multibyte_encoding_001.phpt | 19 printf("%x:%x\n", ord($s[0]), ord($s[1]));
|
/PHP-7.3/Zend/tests/type_declarations/ |
H A D | internal_function_strict_mode.phpt | 9 var_dump(ord(1)); 31 *** Caught ord() expects parameter 1 to be string, int given
|
/PHP-7.3/ext/intl/tests/ |
H A D | uconverter_oop_callback_return.phpt | 13 case "\x82": return ord('b'); 25 case 0x00F2: return ord("B");
|
/PHP-7.3/ext/pdo_oci/tests/ |
H A D | pdo_oci_stream_2b.phpt | 26 $a_val = ord('a'); 37 $b = ord($str1[0]); 38 $b1 = ord($str2[0]);
|
/PHP-7.3/ext/fileinfo/ |
H A D | create_data_file.php | 10 printf("0x%02X, ", ord($dta[$i]));
|
/PHP-7.3/sapi/fpm/tests/ |
H A D | fcgi.inc | 365 $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 D | bug60350.phpt | 6 if (ord($str) == 27) {
|
H A D | class_constants_005.phpt | 7 define ("A", "." . ord(26) . ".");
|
/PHP-7.3/ext/pcre/tests/ |
H A D | bug42737.phpt | 10 var_dump(array_map('ord', $array));
|
/PHP-7.3/ext/gd/tests/ |
H A D | bug79615.phpt | 17 echo decbin(ord(ob_get_clean()[0xA]));
|
/PHP-7.3/ext/mysqli/tests/ |
H A D | mysqli_character_set.phpt | 68 $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 D | bug65184.phpt | 18 printf("%x ", ord($s[$i]));
|
/PHP-7.3/ext/recode/tests/ |
H A D | 002.phpt | 10 $byte = dechex(ord($ascii{$i}));
|
H A D | 001.phpt | 10 $byte = dechex(ord($ascii{$i}));
|
/PHP-7.3/ext/mbstring/tests/ |
H A D | bug52981.phpt | 11 for ($i = 0; $i < $len; ++$i) echo dechex(ord($upper[$i])) . ' ';
|
Completed in 33 milliseconds
12