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