Skip to content

Glossary: PHP Basics

alternative syntax

Also written: alternative syntax for templates

A template-friendly way to write control structures in PHP: a colon replaces `{`, and `endif;` or `endforeach;` replaces `}`. It makes it easier to match up blocks inside HTML.

Where the book teaches it

Related terms

templateforeach