As indicated by your error, explode
requires a delimiter to split the string. Use str_split
instead:
$arr = str_split('testing');
Output
Array
(
[0] => t
[1] => e
[2] => s
[3] => t
[4] => i
[5] => n
[6] => g
)
As indicated by your error, explode
requires a delimiter to split the string. Use str_split
instead:
$arr = str_split('testing');
Output
Array
(
[0] => t
[1] => e
[2] => s
[3] => t
[4] => i
[5] => n
[6] => g
)