O'Reilly logo

Core PHP Programming, Third Edition by Leon Atkinson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Control Statements

Topics in This Chapter

Control statements allow you to execute blocks of code depending on conditions. They allow you to repeat a block of code, which leads to simpler, more efficient scripts. This chapter introduces the decision-making statements if and switch. It also discusses loops using for and while.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required