3. Control Statements
Overview
By the end of this chapter, you will be able to describe Boolean expressions; leverage logical operators to compose Boolean expressions; choose the right comparison operators within a control statement; describe branching and different looping techniques in PHP; apply branching with if
…else
, switch
case, break
, and continue
statements; differentiate between bounded and unbounded loops; implement loops such as while, do
…while
, for
, and foreach
; and write a PHP script to create a movie listing application.