Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (substr($param[0], 0, 1) == 0 || substr($param[0], 0, 2) == "0x" || substr($param[0], 0, 2) == "0b") Throw new Exception($message);
- var_dump([
- 100,
- 0100,
- 0x100,
- 0b100
- ]); // [100, 64, 256, 4]
- var_dump([
- 0100 === 64,
- 0x100 === 256,
- 0b100 === 4
- ]); // [true, true, true]
Add Comment
Please, Sign In to add comment