For this, the str_split() function can be used. It will convert your string into an array of individual characters where you can enter the start and endpoint of the characters you wish to see.

BY Best Interview Question ON 05 May 2020

Example

$str = "Hello";
$arr1 = str_split($str);
print_r($arr1);

Output:

Array
(
[0] => H
[1] => e
[2] => l
[3] => l
[4] => o
)