Fresh selection with links to news and materials. In the release: fresh RFC offers and other news from PHP Internals, a portion of useful tools, and many other materials and news!
Enjoy reading!
// Returns array containing all the necessary state of the object. public function __serialize(): array; // Restores the object state from the given data array. public function __unserialize(array $data): void;
$y = 1; $fn1 = fn($x) => $x + $y;
($x) ==> $x + $y;
\($x) => $x + $y;
use()
: $y = 3; $gen = [for $list as $x if $x % 2 yield $x * $y];
“$arr{} = 1;”
array or to declare the “$a={1,2};”
array. It is proposed that the braces in this context be rejected and that only square brackets be left. Do you use braces?Rule::unique()
.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 151
Source: https://habr.com/ru/post/445140/
All Articles