Lines Matching refs:base_convert
2 Test base_convert() - see https://wiki.php.net/rfc/base_convert_improvements
5 echo base_convert('FF', 16, 10) . "\n";
6 echo base_convert('20', 8, 10) . "\n";
7 echo base_convert('0xFf', 16, 10) . "\n";
8 echo base_convert('0FF', 16, 10) . "\n";
9 echo base_convert(" 0xFF\t\n" , 16, 10) . "\n";
10 echo base_convert(" 0xFF\t\n" , 16, 10) . "\n";
11 echo base_convert("\r\nFF\t\n" , 16, 10) . "\n";
12 echo base_convert("0o7" , 8, 10) . "\n";
13 echo base_convert("0b1010" , 2, 10) . "\n";
18 echo base_convert('fg', 16, 10);
19 echo base_convert('f 0xff ', 16, 10);
20 echo base_convert('1xff ', 16, 10);
21 echo base_convert(chr(0), 16, 10);
22 echo base_convert("0o7" , 9, 10);
23 echo base_convert("0 0" , 9, 10) . "\n";