Split the tamil characters from tamil word using PHP
by Subramanian[ Edit ] 2013-03-26 11:47:59
Split the tamil characters from tamil word using PHP
The
preg_match_all() function is used to split tamil words.
let assign,
$string1="தமிழ்";
preg_match_all('/pLpM*|./u', $string1, $result);
Now print the $result array , you will get the splited tamil characters.
print_r($result);
output :
Array
(
[0] => Array
(
[0] => த
[1] => மி
[2] => ழ்
)
)