Fresh selection with links to news and materials. In the release: PHP 7.4.0 alpha 1, DevConfX, adopted and new RFCs from PHP Internals, a portion of useful tools, and much more.
Enjoy reading!
$i = 197_823_459; // 197823459
?->
, which would allow making safe chains of method calls, in the case where the return value may be null
: $o?->mayFail1()?->mayFail2()?->mayFail3()?->mayFail4();
// $closure = function ( ArgumentType $argument1, ArgumentType $argument2, ArgumentType $argument3, ArgumentType $argument4 ) use ($importVariable1, &$importVariable2, $importVariable3, &$importVariable4): ReturnType { // ... }; // $closure = function ( ArgumentType $argument1, ArgumentType $argument2, ArgumentType $argument3, ArgumentType $argument4 ): ReturnType { use $importVariable1, &$importVariable2; use $importVariable3, &$importVariable4; // ... };
0.1 + 0.2 === 0.30000000000000004
Thanks for attention!
If you notice an error or inaccuracy - please inform the PM .
Write questions and suggestions by mail or twitter .
More news and comments on the PHP Digest Telegram channel.
Send link
Search links for all digests
← Previous release: PHP Digest number 157
Source: https://habr.com/ru/post/456332/
All Articles