|
|
|
|
|
by shdon
12 days ago
|
|
I guess the clamp function really is needed, as even in their release notes, they did the clamping using min/max incorrectly. Their PHP8.5 examples are written as: var_dump(max($value, min($lower_bound, $upper_bound)));
but that should be: var_dump(max($lower_bound, min($value, $upper_bound)));
/facepalm |
|
This is great:
It's even more readable.And since I cant stop typing... (sorry lol)
In stead of: