Split the tamil characters from tamil word using PHP

by Subramanian 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] => ழ்
)

)
857
like
0
dislike
0
mail
flag

You must LOGIN to add comments