Created
February 9, 2020 13:56
-
-
Save MehmetGoekce/a6b0dbe4478d08bf146ccd53a021e4d1 to your computer and use it in GitHub Desktop.
underscores in numeric variables
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 | |
| // previously | |
| $number = 987654321.22; // hard to read | |
| // now | |
| $price = 987_654_321.22; // easy to read |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment