SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
$str = '546788'; $char_array = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY);