php/doc-en

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

オープン

#2,687 opened on 2023/08/15

 (0 件のコメント) (0 件のリアクション) (1 人の担当者)XML (882 件のフォーク)auto 404
QAgood first issue

Repository metrics

Stars
 (596 個のスター)
PR merge metrics
 (平均マージ 99d 23h) (30d で 90 merged PRs)

説明

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

コントリビューターガイド