Technology PHP foreach loop nehapandey posted on 4 years ago — updated on 1 second ago 285 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