Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: max(eight, three)?
(Example: nine)

The Note You're Voting On

mattr at telebody dot com
11 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