Get the latest tech news

PHP 8.5 adds pipe operator


The PHP Foundation — Supporting, Advancing, and Developing the PHP Language

However, we did get a consolation prize out of it: First Class Callables(the array_values(...) syntax), courtesy Nikita Popov, were by design a "junior", degenerate version of partial function application. This time with a better implementation with lots of hand-holding from Ilija Tovilo and Arnaud Le Blanc, both part of the PHP Foundation dev team, I was able to get it through. I don't think it's immodest to say that the pipe operator has one of the highest "bangs for the buck" of any feature in recent memory, alongside such niceties as constructor property promotion.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of PHP 8.5

PHP 8.5

Photo of pipe operator

pipe operator

Related news:

News photo

PHP 8.5 Alpha 1 Released With New Features

News photo

PHP 8.5 alpha 1 is available for download