Home
last modified time | relevance | path

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

12

/PHP-7.0/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)));
H A Dget_html_translation_table_basic6.phpt6 function so($a,$b) { return ord($a) - ord($b); }
/PHP-7.0/ext/iconv/tests/
H A Dbug69840.phpt7 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 Deucjp2iso2022jp.phpt15 printf("%02x", ord($str{$i}));
/PHP-7.0/Zend/tests/multibyte/
H A Dmultibyte_encoding_001.phpt19 printf("%x:%x\n", ord($s[0]), ord($s[1]));
/PHP-7.0/sapi/fpm/tests/
H A Dfcgi.inc336 $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 Dinternal_function_strict_mode.phpt9 var_dump(ord(1));
31 *** Caught ord() expects parameter 1 to be string, integer given
/PHP-7.0/ext/intl/tests/
H A Duconverter_oop_callback_return.phpt13 case "\x82": return ord('b');
25 case 0x00F2: return ord("B");
/PHP-7.0/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.0/ext/fileinfo/
H A Dcreate_data_file.php10 printf("0x%02X, ", ord($dta[$i]));
/PHP-7.0/Zend/tests/
H A Dbug60350.phpt6 if (ord($str) == 27) {
/PHP-7.0/ext/pcre/tests/
H A Dbug42737.phpt10 var_dump(array_map('ord', $array));
/PHP-7.0/ext/date/tests/
H A Dbug65184.phpt18 printf("%x ", ord($s[$i]));
/PHP-7.0/ext/mysqli/tests/
H A Dmysqli_character_set.phpt69 $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 D002.phpt10 $byte = dechex(ord($ascii{$i}));
H A D001.phpt10 $byte = dechex(ord($ascii{$i}));
/PHP-7.0/ext/mbstring/tests/
H A Dbug52981.phpt11 for ($i = 0; $i < $len; ++$i) echo dechex(ord($upper[$i])) . ' ';
/PHP-7.0/ext/phar/tests/tar/files/
H A Dtarmaker.php.inc103 function _pear2tarchecksum($a, $b) {return $a + ord($b);}
105 $checksum = 256; // 8 * ord(' ');
H A Dcorrupt_tarmaker.php.inc110 function _pear2tarchecksum($a, $b) {return $a + ord($b);}
112 $checksum = 256; // 8 * ord(' ');

Completed in 44 milliseconds

12