diff --git a/reference/apcu/apcuiterator.xml b/reference/apcu/apcuiterator.xml index 2402fa980..3abc355df 100644 --- a/reference/apcu/apcuiterator.xml +++ b/reference/apcu/apcuiterator.xml @@ -1,5 +1,5 @@ - + @@ -39,7 +39,7 @@ - 方法 + &Methods; diff --git a/reference/math/functions/max.xml b/reference/math/functions/max.xml index c053d0e19..8ae1f48c3 100644 --- a/reference/math/functions/max.xml +++ b/reference/math/functions/max.xml @@ -1,7 +1,7 @@ - - + + max @@ -101,6 +101,13 @@ &false; 并发出 E_WARNING 错误。 + + 8.0.0 + + 由于 字符串到数字的比较 + 已经改变,max 在这些情况下不再根据参数的顺序返回不同的值。 + + @@ -117,11 +124,6 @@ echo max(2, 3, 1, 6, 7); // 7 echo max(array(2, 4, 5)); // 5 -// The string 'hello' when compared to an int is treated as 0 -// Since the two values are equal, the order they are provided determines the result -echo max(0, 'hello'); // 0 -echo max('hello', 0); // hello - // Here we are comparing -1 < 0, so 'hello' is the highest value echo max('hello', -1); // hello diff --git a/reference/math/functions/min.xml b/reference/math/functions/min.xml index 939efd218..7eb373488 100644 --- a/reference/math/functions/min.xml +++ b/reference/math/functions/min.xml @@ -1,7 +1,7 @@ - - + + min @@ -101,6 +101,13 @@ &false; 并发出 E_WARNING 错误。 + + 8.0.0 + + 由于 字符串到数字的比较 + 已经改变,min 在这些情况下不再根据参数的顺序返回不同的值。 + + @@ -117,11 +124,6 @@ echo min(2, 3, 1, 6, 7); // 1 echo min(array(2, 4, 5)); // 2 -// The string 'hello' when compared to an int is treated as 0 -// Since the two values are equal, the order they are provided determines the result -echo min(0, 'hello'); // 0 -echo min('hello', 0); // hello - // Here we are comparing -1 < 0, so -1 is the lowest value echo min('hello', -1); // -1