Searched refs:ord (Results 1 – 25 of 41) sorted by relevance
12
/PHP-7.0/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)));
|
H A D | get_html_translation_table_basic6.phpt | 6 function so($a,$b) { return ord($a) - ord($b); }
|
/PHP-7.0/ext/iconv/tests/ |
H A D | bug69840.phpt | 7 var_dump(ord($str[0])); 8 var_dump(ord($str[1])); 11 var_dump(ord($str[0])); 12 var_dump(ord($str[1]));
|
H A D | eucjp2iso2022jp.phpt | 15 printf("%02x", ord($str{$i}));
|
/PHP-7.0/Zend/tests/multibyte/ |
H A D | multibyte_encoding_001.phpt | 19 printf("%x:%x\n", ord($s[0]), ord($s[1]));
|
/PHP-7.0/sapi/fpm/tests/ |
H A D | fcgi.inc | 336 $nlen = ord($data{$p++}); 341 $nlen |= (ord($data{$p++})); 343 $vlen = ord($data{$p++}); 348 $vlen |= (ord($data{$p++})); 366 $ret['version'] = ord($data{0}); 367 $ret['type'] = ord($data{1}); 368 $ret['requestId'] = (ord($data{2}) << 8) + ord($data{3}); 369 $ret['contentLength'] = (ord($data{4}) << 8) + ord($data{5}); 370 $ret['paddingLength'] = ord($data{6}); 371 $ret['reserved'] = ord($data{7}); [all …]
|
/PHP-7.0/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, integer given
|
/PHP-7.0/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.0/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.0/ext/fileinfo/ |
H A D | create_data_file.php | 10 printf("0x%02X, ", ord($dta[$i]));
|
/PHP-7.0/Zend/tests/ |
H A D | bug60350.phpt | 6 if (ord($str) == 27) {
|
/PHP-7.0/ext/pcre/tests/ |
H A D | bug42737.phpt | 10 var_dump(array_map('ord', $array));
|
/PHP-7.0/ext/date/tests/ |
H A D | bug65184.phpt | 18 printf("%x ", ord($s[$i]));
|
/PHP-7.0/ext/mysqli/tests/ |
H A D | mysqli_character_set.phpt | 69 $i, mysqli_real_escape_string($link, chr(ord("a") + $i))))) 90 if ($tmp['label'] != chr(ord("a") + $i)) 92 chr(ord("a") + $i), $tmp['label'],
|
/PHP-7.0/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.0/ext/mbstring/tests/ |
H A D | bug52981.phpt | 11 for ($i = 0; $i < $len; ++$i) echo dechex(ord($upper[$i])) . ' ';
|
/PHP-7.0/ext/phar/tests/tar/files/ |
H A D | tarmaker.php.inc | 103 function _pear2tarchecksum($a, $b) {return $a + ord($b);} 105 $checksum = 256; // 8 * ord(' ');
|
H A D | corrupt_tarmaker.php.inc | 110 function _pear2tarchecksum($a, $b) {return $a + ord($b);} 112 $checksum = 256; // 8 * ord(' ');
|
Completed in 44 milliseconds
12