onedumbcoder Posted August 10, 2009 Share Posted August 10, 2009 lets say i have an array with 20 items in it I want to capture all the values in that array but i want to skip the first 4 elements how do i do that? Link to comment https://forums.phpfreaks.com/topic/169536-how-to-fix-to-4th-element-in-an-array/ Share on other sites More sharing options...
Maknis Posted August 10, 2009 Share Posted August 10, 2009 Try $slice = array_slice($array, 4); lets say i have an array with 20 items in it I want to capture all the values in that array but i want to skip the first 4 elements how do i do that? Link to comment https://forums.phpfreaks.com/topic/169536-how-to-fix-to-4th-element-in-an-array/#findComment-894516 Share on other sites More sharing options...
mukunda Posted August 10, 2009 Share Posted August 10, 2009 Use the for from index 4. Link to comment https://forums.phpfreaks.com/topic/169536-how-to-fix-to-4th-element-in-an-array/#findComment-894609 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.