did you know…

Did you know, that while preg_match is faster than ereg, mb_ereg is even faster? Well, it is.

It’s all about libraries, actually.

  • “ereg” uses good-ol’ posix library, which is good, but… well… “old”.
  • “preg_match” uses PCRE
  • “mb_ereg” uses ultra-fast Oniguruma library
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • DZone
  • FriendFeed
  • Reddit
  • Tumblr
  • Twitter

View Commentsdid you know…

  • Dmitry Smirnov (fantaseour)

    So there is another reason to use utf-8 :)

  • mb_ereg doesn’t limit you to use utf-8. just remember to specify encoding with mb_internal_encoding(‘Windows-1251′);

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

blog comments powered by Disqus