PHP 8.3.21 Released!

Voting

: max(four, five)?
(Example: nine)

The Note You're Voting On

Walf
2 years ago
Using PREG_SPLIT_DELIM_CAPTURE without PREG_SPLIT_NO_EMPTY guarantees that all the odd-numbered keys in the result will contain the delimiters. This makes further processing more predictable, and empty strings can always be filtered out at the end.

<< Back to user notes page

To Top