• PHP Manual
  • Language Reference
  • Basic syntax
  • Types
  • Variables
  • Constants
  • Expressions
  • Operators
  • Control Structures
  • Functions
  • Classes and Objects
  • Namespaces
  • Exceptions
  • Generators
  • References Explained
  • Predefined Variables
  • Predefined Exceptions
  • Predefined Interfaces and Classes
  • Context options and parameters
  • Supported Protocols and Wrappers
Type Operators
Introduction
Language Reference
PHP Manual

Control Structures

Table of Contents
  • Introduction
  • if
  • else
  • elseif/else if
  • Alternative syntax for control structures
  • while
  • do-while
  • for
  • foreach
  • break
  • continue
  • switch
  • declare
  • return
  • require
  • include
  • require_once
  • include_once
  • goto