/2.0/Tests/Math/hexdec.php
PHP | 11 lines | 8 code | 2 blank | 1 comment | 0 complexity | 341aebfe9c01130f96d1a9722cfa2381 MD5 | raw file
Possible License(s): CPL-1.0, GPL-2.0, CC-BY-SA-3.0, MPL-2.0-no-copyleft-exception, Apache-2.0
- [expect php]
- [file]
-
- <?php
- print(hexdec("See"));
- print(hexdec("ee"));
- // both print "int(238)"
-
- print(hexdec("that")); // print "int(10)"
- print(hexdec("a0")); // print "int(160)"
- ?>