Technology PHP foreach loop nehapandey posted on 5 years ago — updated on 1 second ago 294 views pThe for-each loop is used to traverse the array elements. It works only on array and object./p https://www.javatpoint.com/php-foreach-loop