Skip to content

Instantly share code, notes, and snippets.

@flaviors200
Last active May 22, 2019 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flaviors200/113435e7e42599be5f48d6c8a5d6adf3 to your computer and use it in GitHub Desktop.
Save flaviors200/113435e7e42599be5f48d6c8a5d6adf3 to your computer and use it in GitHub Desktop.
Integer data type
<?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