'; // 移动指针到下一个位置 $currentPosition++; // 如果已经到了数组末尾,指针回到开头 if ($currentPosition >= count($myArray)) { $currentPosition = 0; } } ?> $myArray = arrayapplecn bananacn orangecn grapecn watermeloncn;php 每次顺序输出从applecn开始 每次只输出一个循环输出结束再从第一个开始

原文地址: https://www.cveoy.top/t/topic/hgIp 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录