PHP: How do I detect if an input string is Arabic

后端 未结 10 1392
旧时难觅i
旧时难觅i 2020-12-08 08:34

Is there a way to detect the language of the data being entered via the input field?

10条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-08 08:48

    The PHP Text_LanguageDetect library is able to detect 52 languages. It's unit-tested and installable via composer and PEAR.

提交回复
热议问题