Menu

#4 Replacing mb_* functions

open
nobody
5
2009-10-30
2009-10-30
No

After going through this library it seems like it would be easiest to add this code to existing projects by checking for and overriding the mb_* functions as needed. For example, you could do something like this:

if ( extension_loaded('mbstring') == FALSE ) {
include('utf8.php');
}

which would contain all the matching string functions (called utf8_*) defined as mb_* functions for a quick drop in place solution to hosts that don't have mutlibyte string support. Perhaps, I'm missing something - but this would seem to be an easier way to implement this very useful function lib.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB