Last active
May 22, 2019 16:50
-
-
Save flaviors200/113435e7e42599be5f48d6c8a5d6adf3 to your computer and use it in GitHub Desktop.
Integer data type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dec = 40; // decimale | |
$oct = 0321; // ottale | |
$hex = 0xBC; // esadecimale | |
$bin = 0b11111; // binario | |
$neg = -125; | |
echo $dec."\n"; // 40 | |
echo $oct."\n"; // 209 | |
echo $hex."\n"; // 188 | |
echo $bin."\n"; // 31 | |
echo $neg; // -125 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment