YoVDO

Learn PHP: Conditionals and Logic

Offered By: Codecademy

Tags

PHP Courses

Course Description

Overview

Write programs that handle complex decision-making using the boolean data type, conditionals, and comparison and logical operators.
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](https://www.codecademy.com/learn/learn-php-functions) before completing this course.

Syllabus

  • PHP Conditionals: Control the program flow using `if`, `else if`, `else`, `switch`, and ternary syntax.
    • Lesson: Booleans and Comparison Operators
    • Quiz: PHP Conditionals
    • Project: Magic 8 Ball
    • Project: PHP Number Guessing
  • PHP Logic: Create decision-making programs using comparison and logical operators.
    • Lesson: Logical Operators and Compound Conditions
    • Quiz: Compound Conditions
    • Article: Common Mistakes with Conditionals
    • Project: Save the Farm!
    • Informational: Next Steps

Taught by

Kenny Lin

Related Courses

Introduction to Functional Programming
Delft University of Technology via edX
Introduction to Office 365 Development and APIs
Microsoft via edX
Web Development and Design using Wordpress
California Institute of the Arts via Kadenze
Build a Basic PHP Website Course (How To)
Treehouse
Web Applications for Everybody
Independent