I want to get a single unicode chatacter from a unicode string.
for example:- $str = \"पर्वत निर्माणों में कोनसा संचलन कार्य करता है\"; echo $str[0];
outpu
PHP's default $str[x]
notation operates on bytes, so you're just getting the first part of a multibyte character. To extract entire encoding aware byte sequences for whole characters, you need to use mb_substr.
Also see What Every Programmer Absolutely, Positively Needs To Know About Encodings And Character Sets To Work With Text.