1bigbear Posted January 28, 2010 Share Posted January 28, 2010 I can't find a way of starting the foreach loop from a certain array, I have an array with 1000 values, and I want to start the loop with the 500th value, skipping the first 500, is this possible? Link to comment https://forums.phpfreaks.com/topic/190169-start-foreach-with-a-certain-array/ Share on other sites More sharing options...
teamatomic Posted January 28, 2010 Share Posted January 28, 2010 $i=499; $j=count($array); for($i; $i<=$j;$i++) { $line=$array[$i]; } HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/190169-start-foreach-with-a-certain-array/#findComment-1003335 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.