Hi.
Do you think this is a good
way to avoid troubles using
a utf-8 charset ?
function mb_($func/*[, mixed args ]*/){
$args = func_get_args();
array_shift($args);
$overload= 'mb_'.$func;
if(function_exists($overload)){
return call_user_func_array($overload,$args);
}
return call_user_func_array($func,$args);
}
var_dump(mb_('substr','php',0,2));
Is there too much overhead ?
What's your way to cope with
the problem ?
Bye.