views:

74

answers:

1
+1  Q: 

mb_ereg_* in PHP6

So ereg won't be present in PHP6. And I don't really care, because I'm using PCRE functions. But for multibyte strings, I'm using mb_ereg_* functions. The question is: they'll be present in PHP6 in the mbstring extension, or I will have to switch to some kind of multibyte PCRE functions?

A: 

Php6 strings will be unicode strings by default, so PCRE functions will compatible with them, they seem to be already marked as "Unicode-Compatible Functions" in the Unicode Completion Stats page.

VirtualBlackFox
Shit, my app will be incompatible with PHP6 then. mbstring is the only way to handle unicode strings in PHP5, right?
Julio Greff
Most people just use byte strings and pray everything's UTF-8. UTF-8 is nice as long as you don't need to get at individual characters, and PHP5's pcre deals with UTF-8 strings if you append a u. "/pattern/u"
joeforker