I have 2 dates in PHP, how can I run a foreach loop to go through all of those days? May 24, 2022 by IT Nursery I’m starting with a date 2010-05-01 and ending with 2010-05-10. How can I iterate through all of those dates in PHP? 12 Answers 12