Codice PHP:
$x 100110;
$chars preg_split('//'$x, -1PREG_SPLIT_NO_EMPTY);
for (
$i 0$i count($chars); $i++) {
    echo 
$chars[$i].'
'
;