TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

PHP 8 Released

4 pointsby mnazimover 4 years ago

1 comment

dkdbejwi383over 4 years ago
Having not used PHP for many years, this does look like a nice set of improvements.<p>Are there any plans to improve the standard library? For example, looking at the first example from this changelist:<p><pre><code> htmlspecialchars($string, double_encode: false); </code></pre> Wouldn&#x27;t this be nicer encapsulated as something like:<p><pre><code> $encoded = $myString.htmlEncode(double_encode: false);</code></pre> or<p><pre><code> $encoded = String.htmlEncoded($myString, double_encode: false); </code></pre> I think that&#x27;s more discoverable&#x2F;logical than just a strangely named function in the global scope.