1.2.805. No Empty String With explode()¶
explode() doesn’t allow empty strings as separator. Until PHP 8.0, it would make a warning, and return false. After that version, it raises a ValueError.
To break a string into individual characters, it is possible to use the array notation on strings, or to use the str_split() function.
<?php
explode('', "a");
?>