Skip to Content
PHP for the Web: Visual QuickStart Guide, Fourth Edition
book

PHP for the Web: Visual QuickStart Guide, Fourth Edition

by Larry Ullman
March 2011
Beginner
528 pages
12h 37m
English
Peachpit Press
Content preview from PHP for the Web: Visual QuickStart Guide, Fourth Edition

6. Control Structures

Control structures—conditionals and loops—are a staple of programming languages. PHP has two conditionals—if and switch—both of which you’ll master in this chapter. Conditionals allow you to establish a test and then perform actions based on the results. This functionality provides the ability to make Web sites even more dynamic.

The discussion of if conditionals requires introduction of two last categories of operators: comparison and logical (you’ve already seen the arithmetic and assignment operators in the previous ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP for the Web: Visual QuickStart Guide, Third Edition

PHP for the Web: Visual QuickStart Guide, Third Edition

Larry Ullman

Publisher Resources

ISBN: 9780132575140Purchase book