1 2 3 4 5 6 7 8
<?php $var = 'HELLO'; $i = 0; while ($i < strlen($var)) { echo $var[$i],'<br>'; $i++; } ?>