Getting Substring from other languages

by MANIMUTHUPANDI 2014-06-02 14:45:41


mb_substr(str,start,length,character encoding) will return the substring with character encoding.

$d="கோல்";
$d=mb_substr($d,0,1,'utf-8');

The above function will output the string 'க'

Tagged in:

910
like
0
dislike
0
mail
flag

You must LOGIN to add comments