Key Concepts

Review core concepts you need to learn to master this subject

PHP else statement

$condition = FALSE; if ($condition) { // This code block will not execute } else { // This code block will execute }

A PHP else statement can follow an if block. If the condition of the if does not evaluate to TRUE, the code block following else will be executed.

Booleans and Comparison Operators
Lesson 1 of 2

What you'll create

Portfolio projects that showcase your new skills

Pro Logo

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo