php - mbstring function overload using ini_set() -


i want able set mbstring.func_overload within php file using ini_set(), example:

ini_set( 'mbstring.func_overload', 7 ); $foo = 'é'; echo "expected output: 1 1\n" , "output: " , strlen( $foo ) , mb_strlen( $foo ); 

outputs:

expected output: 1 1 output: 2 1 

on manual page says:

this setting can changed php.ini file.

this explains unexpected behaviour. should instead?


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -