public function isKanji(string $string):bool{
		$i   = 0;
		$len = \strlen($string);

		while($i + 1 < $len){
			$c = ((0xff&\ord($string[$i])) << 8)|(0xff&\ord($string[$i + 1]));

			if(!($c >= 0x8140 && $c <= 0x9FFC) && !($c >= 0xE040 && $c <= 0xEBBF)){
				return false;
			}

			$i += 2;
		}

		return $i >= $len;
	}
public function isKanji(string $string):bool{
		$i   = 0;
		$len = \strlen($string);

		while($i + 1 < $len){
			$c = ((0xff&\ord($string[$i])) << 8)|(0xff&\ord($string[$i + 1]));

			if(!($c >= 0x8140 && $c <= 0x9FFC) && !($c >= 0xE040 && $c <= 0xEBBF)){
				return false;
			}

			$i += 2;
		}

		return $i >= $len;
	}
public function isKanji ( string $ string ) : bool { $ i = 0 ; $ len = \ strlen ( $ string ) ; while ( $ i + 1 < $ len ) { $ c = ( ( 0xff & \ ord ( $ string [ $ i ] ) ) << 8 ) | ( 0xff & \ ord ( $ string [ $ i + 1 ] ) ) ; if ( ! ( $ c >= 0x8140 && $ c <= 0x9FFC ) && ! ( $ c >= 0xE040 && $ c <= 0xEBBF ) ) { return false ; } $ i += 2 ; } return $ i >= $ len ; }
checks if a string qualifies as Kanji

@param string $string

@return bool
checks if a string qualifies as Kanji