© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
A. VasilevPHP by Examplehttps://doi.org/10.1007/979-8-8688-0258-4_3

3. The Control Statements

Alex Vasilev1  
(1)
Department of Software Systems and Technologies, Taras Shevchenko National University of Kyiv, Kyiv, Ukraine
 

I was sitting quietly, peacefully. Then I got hungry. Further, as if in a fog.

ALF (TV series)

This chapter discusses control statements, which are instructions designed to create branch points in a program and instructions to repeat statement blocks. In other words, it covers the conditional, loop, and selection statements.

The if Conditional Statement

The conditional if statement allows you to execute different blocks of commands depending ...

Get PHP by Example: A Practical Guide to Creating Web Applications with PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.