php/doc-en

Min()/Max() example has incorrect information comparing with "hello"

开放

#2,687 创建于 2023年8月15日

 (0 条评论) (0 个反应) (1 位负责人)XML (882 个派生)auto 404
QAgood first issue

仓库指标

星标
 (596 个星标)
PR 合并指标
 (平均合并 99天 23小时) (30 天内合并 90 个 PR)

描述

This was missed as part of https://github.com/php/doc-en/commit/8a0ab242e83ec201615c947eaa0e1c5719576c12

But there is a remaining example:

// Here we are comparing -1 < 0, so 'hello' is the highest value
echo max('hello', -1);    // hello

(Ditto for min())

This example is inaccurate as of PHP 8.0, and might make sense to either be split out into its own dedicated example or removed.

@afilina

贡献者指南