<?php $array = [ 'H', 'E', 'L', 'L', 'O', ]; $string = implode("", $array); for ($i = 0; $i <= count($array); $i++) { echo substr($string, 0, $i)."\n"; }
You have javascript disabled. You will not be able to edit any code.