PHP 8.6.0 Beta 1 is available for testing

Voting

: six plus one?
(Example: nine)

The Note You're Voting On

mattr at telebody dot com
12 years ago
A brief note on Daniel Rhodes' mb_punctuation_trim().
The regular expression modifier u does not mean ungreedy, rather it means the pattern is in UTF-8 encoding. Instead the U modifier should be used to get ungreedy behavior. (I have not otherwise tested his code.)
See http://php.net/manual/en/reference.pcre.pattern.modifiers.php

<< Back to user notes page

To Top