php to loop through a dir code example Example: php iterate through a loop <?php $scores = [1,2,3]; foreach ($scores as $score) { echo $score; }