TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

PHP 8 Released

4 点作者 mnazim超过 4 年前

1 comment

dkdbejwi383超过 4 年前
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.