Как установить генератор в исходное положение?
Код:
foreach($items as $item):
foreach($sides as $side):
echo alternator('Left', 'Right');
endforeach;
//I want the alternator to "restart" here and always start from the initial variable "Left" in this case
endforeach;
foreach($items as $item):
foreach($sides as $side):
echo alternator('Left', 'Right');
endforeach;
alternator();
endforeach;
Других решений пока нет …