Get first n characters of a string – The Multibyte extension can come in if you need control over the string charset.
Getting the first character of a string with $str[0]
1 Article
1
Get first n characters of a string – The Multibyte extension can come in if you need control over the string charset.