PHP 8.5.0 Alpha 2 available for testing

Voting

: six plus three?
(Example: nine)

The Note You're Voting On

Walf
3 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