{"id":42712,"date":"2025-11-23T01:48:29","date_gmt":"2025-11-23T01:48:29","guid":{"rendered":"https:\/\/eduzim.co.zw\/news\/?p=42712"},"modified":"2025-11-23T01:48:29","modified_gmt":"2025-11-23T01:48:29","slug":"php-85-brings-long-awaited-pipe-operator-adds-new-uri-toolsutm_sourcerss1-0mainlinkanonutm_mediumfeed","status":"publish","type":"post","link":"https:\/\/eduzim.co.zw\/news\/2025\/11\/23\/php-85-brings-long-awaited-pipe-operator-adds-new-uri-toolsutm_sourcerss1-0mainlinkanonutm_mediumfeed\/","title":{"rendered":"PHP 8.5 Brings Long-Awaited Pipe Operator, Adds New URI Tools"},"content":{"rendered":"<p> <script data-jetpack-boost=\"ignore\" async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1669381584671856\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<!-- Africa tv video display -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-1669381584671856\"\r\n     data-ad-slot=\"3579572842\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script data-jetpack-boost=\"ignore\">\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><br \/>\n<\/p>\n<div id=\"fhbody-180181091\">\n<div id=\"text-180181091\" class=\"p\">\n<p>\t\t\t\t&#8220;PHP 8.5 landed on Thursday with a long-awaited pipe operator and a new standards-compliant URI parser,&#8221; reports the Register, &#8220;marking one of the scripting language&#8217;s more substantial updates&#8230; &#8221;<\/p>\n<p><i><\/p>\n<p>The pipe operator allows function calls to be chained together, which avoids the<br \/>\nextraneous variables and nested statements that might otherwise be<br \/>\ninvolved. Pipes tend to make code more readable than other ways to<br \/>\nimplement serial operations. Anyone familiar with the Unix\/Linux<br \/>\ncommand line or programming languages like R,<br \/>\nF#,<br \/>\nClojure, or<br \/>\nElixir<br \/>\nmay have used the pipe operator. In JavaScript, aka ECMAScript, a<br \/>\npipe operator has been proposed, though there are alternatives<br \/>\nlike method chaining.<br \/>\n<\/i><\/p>\n<p>Another significant addition is the URI<br \/>\nextension, which allows developers to parse and modify URIs and<br \/>\nURLs based on both the RFC 3986 and the WHATWG URL standards. Parsing<br \/>\nwith URIs and URLs \u00e2&#8221; reading them and breaking them down into their<br \/>\ndifferent parts \u00e2&#8221; is a rather common task for web-oriented<br \/>\napplications.  Yet prior versions of PHP didn&#8217;t include a<br \/>\nstandards-compliant parser in the standard library. As noted<br \/>\nby software developer Tim D\u00c3\u00bcsterhus, the parse_url()<br \/>\nfunction that dates back to PHP 4 doesn&#8217;t follow any standard and<br \/>\ncomes with a warning that it should not be used with untrusted or<br \/>\nmalformed URLs.<\/p>\n<p>Other noteworthy additions to the language include: Clone<br \/>\nWith, for updating properties more efficiently; the #[\\NoDiscard]  attribute, for warning when a return value goes unused; the<br \/>\nability to use static closures and first-class callables in constant expressions; and persistent cURL handles that can be shared across multiple PHP requests.<\/p>\n<\/div><\/div>\n<p><script data-jetpack-boost=\"ignore\" async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1669381584671856\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<!-- Africa tv video display -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-1669381584671856\"\r\n     data-ad-slot=\"3579572842\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script data-jetpack-boost=\"ignore\">\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><br \/>\n#PHP #Brings #LongAwaited #Pipe #Operator #Adds #URI #Tools<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;PHP 8.5 landed on Thursday with a long-awaited pipe operator and a new standards-compliant URI parser,&#8221; reports the Register, &#8220;marking&hellip;<\/p>\n","protected":false},"author":1,"featured_media":39406,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"class_list":["post-42712","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mzansi"],"_links":{"self":[{"href":"https:\/\/eduzim.co.zw\/news\/wp-json\/wp\/v2\/posts\/42712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eduzim.co.zw\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eduzim.co.zw\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eduzim.co.zw\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eduzim.co.zw\/news\/wp-json\/wp\/v2\/comments?post=42712"}],"version-history":[{"count":1,"href":"https:\/\/eduzim.co.zw\/news\/wp-json\/wp\/v2\/posts\/42712\/revisions"}],"predecessor-version":[{"id":42713,"href":"https:\/\/eduzim.co.zw\/news\/wp-json\/wp\/v2\/posts\/42712\/revisions\/42713"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eduzim.co.zw\/news\/wp-json\/wp\/v2\/media\/39406"}],"wp:attachment":[{"href":"https:\/\/eduzim.co.zw\/news\/wp-json\/wp\/v2\/media?parent=42712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eduzim.co.zw\/news\/wp-json\/wp\/v2\/categories?post=42712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eduzim.co.zw\/news\/wp-json\/wp\/v2\/tags?post=42712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}