
"The pipe operator allows function calls to be chained together, which avoids the extraneous variables and nested statements that might otherwise be involved. Pipes tend to make code more readable than other ways to implement serial operations. Anyone familiar with the Unix/Linux command line or programming languages like R, F#, Clojure, or Elixir may have used the pipe operator. In JavaScript, aka ECMAScript, a pipe operator has been proposed, though there are alternatives like method chaining."
"PHP 8.5 landed on Thursday with a long-awaited pipe operator and a new standards-compliant URI parser, marking one of the scripting language's more substantial updates. PHP, short for Personal Home Page when initially released in 1995 by Rasmus Lerdorf, now stands for PHP: Hypertext Preprocessor. Version 8.5 is a major release that brings with it a handful of useful new capabilities. It follows PHP 8.4, which debuted a year ago."
PHP 8.5 adds a pipe operator that enables chaining function calls to avoid extraneous variables and nested statements, improving code readability for serial operations. The pipe operator supports idioms familiar from Unix/Linux shells and languages like R, F#, Clojure, and Elixir, and mirrors proposals in ECMAScript. The release also introduces a URI extension that parses and modifies URIs and URLs according to RFC 3986 and the WHATWG URL standard, providing standardized, robust handling of common web-oriented parsing tasks. Version 8.5 builds on PHP 8.4 and offers several notable developer-facing improvements.
Read at Theregister
Unable to calculate read time
Collection
[
|
...
]