PHP 8.6 Released with Partial Function Application, Polling API, and More
Coming a year after PHP 8.5, the PHP 8.6 release introduces new features like Partial Function Application, which lets you pre-fill some of a function’s arguments and get back a Closure that accepts the rest, so the function is only called once the remaining arguments are provided.
内容来自 LXer Linux News,版权归原作者所有。
阅读原文 ↗