PHP endforeach Keyword

PHP Keywords : Close a foreach loop block

Definition and Usage

The endforeach keyword is used to close the code block of a foreach loop which was started using the foreach(...): syntax.

Related Pages

The foreach keyword.

Read more about for loops in our PHP foreach Loop Tutorial.

❮ PHP Keywords