Is there any equivalent function that returns the character at position `X` in PHP?
php, string
Solution
For single-byte strings you can use: `$myString[20]` (note that indices start from 0).
For multi-byte strings see the answer below
Problem
Is there any equivalent function that returns the character at position `X` in PHP? I went through the documentation but couldn't find any. I am looking for something like: ``` $charAtPosition20 = strCharAt(20, $myString); ```