Pages

របៀបបំបាត់អក្សរខ្មែរ how to remove khmer unicode by PHP

<?php
$value = "ខ្មែរសាកល្បង Test";
preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $value);
/*output
Test

No comments:

Post a Comment