Hi!
I need help to use this funciton: mb_language().

My code is very simple.

<?php

$lang = mb_language();
echo $lang;	

?>

When I execute this script, I got an error:
Fatal error: Call to undefined function: mb_language().

I use Apache 2.54 and php 5.0.4 for windows.
I cannot find a lot of examples to use this function.
Thanks.

    it means that the multibyte functions are not installed. you need to edit your php.ini file to uncommend the extension php_mbstring.dll and make sure it is in the extension directory, as specified in php.ini

      Hi!
      Thanks. It works. But I have a question. The return string will according to my system locale, right?
      My operating system locale is Chinese, why it returns "neutral".
      Thanks again.

        that i dont know about. i have never had to use this library before.

          Hi!
          I think maybe I ask the wrong question. My purpose is I try to create a web page. If the client use English system, then I want the web page auto. load English page. If the client use Chinese system, the web page will auto. load Chinese page.
          For example, like Apache. When I finish install, if I view the default page from Chinese System, then Apache will Auto. load Chinese default page. If I view same page using English, then Apache will Auto. load English page. I want to do similar thing.
          Thanks.

            Write a Reply...