Quantcast
Channel: PHP
Viewing all articles
Browse latest Browse all 28

Introduction to PHP for Drupal Tutorial #5: Nesting IF and Switch Statements

$
0
0

In this PHP video tutorial, we continue where we left off in #4 and look at nesting IF statements. I show you how we can check for one condition and if it is true, then check for more conditions. From there, we change things up and look at Switch statements. These essentially provide the same functionality as If / Else If statements but can look cleaner and easier to read. Finally, we conclude the tutorial by looking at short form IF statements. This should only really be used for very simple IF evaluations.

Video: 

Viewing all articles
Browse latest Browse all 28

Trending Articles