Learn PHP: Conditionals and Logic

Start

Why Learn PHP: Conditionals and Logic?

Continue your PHP learning journey! Writing programs that can handle complex decision-making sets you up to make powerful, interesting programs. This course will give you the tools you need to make flexible and dynamic programs!

Take-Away Skills

By the end of this course, you will be able to:

  • Control the program flow using if, else if, else, switch, and ternary syntax.
  • Create decision-making programs using comparison and logical operators.

Notes on Prerequisites

We recommend that you complete Learn PHP: Functions before completing this course.

Codecademy courses have been taken by employees at

Google LogoFacebook LogoNASA LogoIBM LogoDropbox Logo
  1. 1
    Control the program flow using if, else if, else, switch, and ternary syntax.
  2. 2
    Create decision-making programs using comparison and logical operators.

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
testimonial

— Madelyn, Pinterest

I know from first-hand experience that you can go in knowing zero, nothing, and just get a grasp on everything as you go and start building right away.

Course Description

Write programs that handle complex decision-making using the boolean data type, conditionals, and comparison and logical operators.

Details

Earn a certificate of completion
5 hours to complete in total
Beginner

Control the program flow using if, else if, else, switch, and ternary syntax.

1 lesson, 1 quiz, 1 article, 1 project, 1 informational