Re:PHP 7.4
by RadioactiveMan on Thursday November 28, 2019 @12:08PM
(#21658784)
Here's the RFC for it with the "why" and discussion of the tradeoffs. https://wiki.php.net/rfc/numeric_literal_separator
Underscores in numeric literals are also now pretty much a defacto standard. Java, JavaScript, Perl, Python, C#, Ruby, Rust, Swift, etc, all support it.
Numeric literals can contain underscores between digits.
<?php 6.674_083e-11; // float 299_792_458; // decimal 0xCAFE_F00D; // hexadecimal 0b0101_1111; // binary ?>