Guest User

Untitled

a guest
Jul 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. if (substr($param[0], 0, 1) == 0 || substr($param[0], 0, 2) == "0x" || substr($param[0], 0, 2) == "0b") Throw new Exception($message);
  2.  
  3. var_dump([
  4. 100,
  5. 0100,
  6. 0x100,
  7. 0b100
  8. ]); // [100, 64, 256, 4]
  9.  
  10. var_dump([
  11. 0100 === 64,
  12. 0x100 === 256,
  13. 0b100 === 4
  14. ]); // [true, true, true]
Add Comment
Please, Sign In to add comment