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

http://jumnuoy.blogspot.com/2013/09/how-to-remove-khmer-unicode-by-php.html

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


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

0 comments:

Post a Comment

Followers

រឿង ដែលខានមើលមិនបាន

Contact us

Name

Email *

Message *

Your Language

Online

Copyright 2009 Simplex Celebs All rights reserved Designed by www.sruol9.com