Last active
December 1, 2019 17:21
-
-
Save jenovateurs/ad24d436a2bb73e0da902f05469c76bb to your computer and use it in GitHub Desktop.
Nouveauté PHP 7.4 - Séparateur des milliers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| var_dump(6.674_083e-11); // large float | |
| var_dump(299_792_458.545_456); // petit float | |
| var_dump(10_000_000); // entier | |
| var_dump(0xCAFE_F00D); // hexa-décimale | |
| var_dump(0b0101_1111); // binaire | |
| /*Résultat | |
| float(6.674083E-11) | |
| float(299792458.54546) | |
| int(10000000) | |
| int(3405705229) | |
| int(95) | |
| */ | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment