hexdec : Hexadecimal Number : Language Basics PHP Source Code


PHP Source Code » Language Basics » Hexadecimal Number »

 

hexdec




<?php
$orig_dec = 255;
$dec2hex = dechex($orig_dec);
$hex2dec = hexdec($dec2hex);
echo "original decimal number: $orig_dec <br>";
echo "new hexadecimal number: $dec2hex <br>";
echo "back to decimal: $hex2dec <br>";
?>
           
       



HTML code for linking to this page:

    Related in same category :
Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» Hexadecimal Number