CakeFest 2025 Madrid: The Official CakePHP Conference

Voting

: max(three, seven)?
(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