# Add form feed as a whitespace character in trim, ltrim and rtrim

- Thread: https://externals.io/message/129708
- Original archive: https://news-web.php.net/php.internals/129708
- Started by lamentxu@163.com on 2025-12-28T07:25:40+00:00
- Messages: 1
- 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

---

## #129708 — lamentxu@163.com — 2025-12-28T07:25:40+00:00

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

> 
> > […]
>
> Uh, except of course for NUL, which `trim()` removes.
By the way, I do not think NUL(\x00) should be trimed...... In other languages (at least python and rust and libc) NUL is not a whitespace. I therefore opine NUL should be removed from trim in the future, but that is another issue.
I think the BC break would effect some users (every BC break does, but this one could annoy someone expecting \f not to be trim for years using php). I am on the fence about the break too, but I think the change do seems great to me according to other languages' behaviours. I initially thought this is a bug when I discover this.
