# [RFC] [Accepted] Add clamp function

- Thread: https://externals.io/message/129292
- Original archive: https://news-web.php.net/php.internals/129292
- Started by Kyle Katarn on 2025-11-19T08:58:56+00:00
- Messages: 1
- RFC: Add "clamp()" function (Implemented (PHP 8.6)) — https://externals.io/rfc/clamp_v2.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #129292 — Kyle Katarn — 2025-11-19T08:58:56+00:00

URL: https://externals.io/message/129292#129292

Hi,

Vote closed for https://wiki.php.net/rfc/clamp_v2 so I updated the wiki
accordingly, you can now review the rebased implementation on
https://github.com/php/php-src/pull/19434 and documentation on
https://github.com/php/doc-en/pull/4814

Thanks,
