2014-12-05 49 views
0

如何将交流发电机设置为其原始位置?如何重置codeigniter交流发电机()功能

代码:

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; 

回答