Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Perl 代码中,您可以使用大量下划线来提高可读性。例如,数字123456789等价于123_456_789,这有助于编码人员理解它所代表的数字。
123456789
123_456_789
PHP 中是否有可以用于相同目的的字符?我试过逗号和下划线,但它们都不起作用。
马克贝克是对的,但如果你强烈想要
function f() { $f = 0; $args = func_get_args(); foreach ($args as $arg) { $f = $f*1000+$arg; } return($f); } $i = f(17,123.81); echo $i;
结果17123.81
17123.81
你不能。但是为什么不用逗号重复这个数字作为评论呢?