I am trying to detect chinese characters in a string I have in PHP, currently I am trying to do this:
$bio = '全部都好有用架 無用的我都一早打入冷宮唔見哂(… 有意/想睇圖都歡迎留whatsapp or line: chibimasakishop 可綠線/將軍澳線交收';
if (preg_match('/[\x{4e00}-\x{9fa5}]+.*\-/u', $bio) === 1) {
var_dump('contains a chinese character');
}
why isn't this working?