We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a86b974 commit 3f71768Copy full SHA for 3f71768
NEWS
@@ -7,6 +7,7 @@ PHP NEWS
7
request. (ilutov)
8
. It is now possible to use reference assign on WeakMap without the key
9
needing to be present beforehand. (ndossche)
10
+ . Added `clamp()`. (kylekatarnls, thinkverse)
11
12
- Hash:
13
. Upgrade xxHash to 0.8.2. (timwolla)
UPGRADING
@@ -66,6 +66,10 @@ PHP 8.6 UPGRADE NOTES
66
6. New Functions
67
========================================
68
69
+- Core:
70
+ . `clamp()` returns the given value if in range, else return the nearest bound.
71
+ RFC https://wiki.php.net/rfc/clamp_v2
72
+
73
74
7. New Classes and Interfaces
75
0 commit comments