<?php $index = 0; $ratings = ['sadas','sad','sadsad']; foreach ($ratings as $rKey => &$ratingStudent) { ++$index; var_dump($index); }
You have javascript disabled. You will not be able to edit any code.