foreach ($variable as $key => $value):
      
      endforeach;
      Php language logo

      foreach

      PHP recipes

      The forEach() loop iterates through the $variable array, assigning each key/value pair to the $key and $value variables, respectively.

      Shortcut: foreachend

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.