Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Literals-Integer/PHP/literals-integer.php
Normal file
11
Task/Literals-Integer/PHP/literals-integer.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
if (727 == 0x2d7 &&
|
||||
727 == 01327) {
|
||||
echo "true\n";
|
||||
}
|
||||
|
||||
$a = 1234; // decimal number
|
||||
$a = 0123; // octal number (equivalent to 83 decimal)
|
||||
$a = 0x1A; // hexadecimal number (equivalent to 26 decimal)
|
||||
$a = 0b11111111; // binary number (equivalent to 255 decimal)
|
||||
$a = 1_234_567; // decimal number (as of PHP 7.4.0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue