Skip to content

Instantly share code, notes, and snippets.

@DanielHe4rt
Created September 1, 2019 00:30
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 DanielHe4rt/cfb48a42a823575810cd81346abc7cdd to your computer and use it in GitHub Desktop.
Save DanielHe4rt/cfb48a42a823575810cd81346abc7cdd to your computer and use it in GitHub Desktop.
<?php
var_dump(1234); // número decimal
var_dump(-123); // um número negativo
var_dump(0123); // número octal (equivalente a 83 em decimal)
var_dump(0x1A); // número hexadecimal (equivalente a 26 em decimal)
var_dump(0b11111111); // número binário (equivalente ao 255 decimal)
var_dump(1234); // número decimal
var_dump(-123); // um número negativo
var_dump(0123); // número octal (equivalente a 83 em decimal)
var_dump(0x1A); // número hexadecimal (equivalente a 26 em decimal)
var_dump(0b11111111); // número binário (equivalente ao 255 decimal)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment