Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $n = 12;
- $o = 017;
- $h = 0x1B;
- printf("The number is %d and %d and %d", $n, $o, $h);
- echo "<br/>";
- printf("The binary equivalent of %d is %b",12,12);
- echo "<br/>";
- printf("The hexadeciman equivalent of %d is %x",1212,1212);
- echo "<br/>";
- printf("The octal equivalent of %d is %o",1212,1212);
- echo "<br/>";
- printf("octal %o = %d",0200000,0200000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement