PHP code example of lasserafn / php-string-script-language

1. Go to this page and download the library: Download lasserafn/php-string-script-language library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lasserafn / php-string-script-language example snippets


use LasseRafn\StringScript;

StringScript::isThai('Hello world.'); // false
StringScript::isChinese('你好世界。'); // true

StringScript::isCommon($string);

StringScript::isArabic($string);

StringScript::isArmenian($string);

StringScript::isBengali($string);

StringScript::isBopomofo($string);

StringScript::isBraille($string);

StringScript::isBuhid($string);

StringScript::isCanadian_Aboriginal($string);

StringScript::isCherokee($string);

StringScript::isCyrillic($string);

StringScript::isDevanagari($string);

StringScript::isEthiopic($string);

StringScript::isGeorgian($string);

StringScript::isGreek($string);

StringScript::isGujarati($string);

StringScript::isGurmukhi($string);

StringScript::isHan($string);

StringScript::isHangul($string);

StringScript::isHanunoo($string);

StringScript::isHebrew($string);

StringScript::isHiragana($string);

StringScript::isInherited($string);

StringScript::isKannada($string);

StringScript::isKatakana($string);

StringScript::isKhmer($string);

StringScript::isLao($string);

StringScript::isLatin($string);

StringScript::isLimbu($string);

StringScript::isMalayalam($string);

StringScript::isMongolian($string);

StringScript::isMyanmar($string);

StringScript::isOgham($string);

StringScript::isOriya($string);

StringScript::isRunic($string);

StringScript::isSinhala($string);

StringScript::isSyriac($string);

StringScript::isTagalog($string);

StringScript::isTagbanwa($string);

StringScript::isTaiLe($string);

StringScript::isTamil($string);

StringScript::isTelugu($string);

StringScript::isThaana($string);

StringScript::isThai($string);

StringScript::isTibetan($string);

StringScript::isYi($string);

StringScript::isChinese($string);

StringScript::isJapanese($string);