Fresh and the last this year's collection with links to news and materials. In the release: a couple of fresh sentences from PHP Internals, useful tools, materials on frameworks and asynchronous PHP and more.
Happy New Year! Enjoy reading.
function f(scalar $param) { echo "{$param}\n"; }
// bootstrap.php namespace_declare('Vendor\Lib', [ 'strict_types' => 1, ... ]);
use function Amp\ParallelFunctions\parallelMap; use function Amp\Promise\wait; $responses = wait(parallelMap([ 'https://google.com/', 'https://github.com/', 'https://stackoverflow.com/', ], function ($url) { return file_get_contents($url); }));
Thanks for attention!
If you notice an error or inaccuracy - please inform the PM .
Write questions and suggestions by mail or twitter .
Send link
Search links for all digests
← Previous release: PHP Digest number 121
Source: https://habr.com/ru/post/345462/