Php - Split tamil characters from tamil word, How to split tamil characters

Split tamil characters from tamil word

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

The topic on Php - Split tamil characters from tamil word is posted by - Namo

Hope you have enjoyed, Php - Split tamil characters from tamil wordThanks for your time

Tech Bluff