@do: operator directive is part of the conditional
loop operator directives. It is being used to loop through a list of item. It used along with the
@while(); directive.
@php: $i = 1; @php;
@do:
echo 'The current number is '.$i.' <br>';
$i++;
@while($i <= 3);
The current number is 1
The current number is 2
The current number is 3
do while();
directive must contain raw php codes in other to work successfully.