HTML Academy
  • HTML Academy
  • Courses
  • Tutorials
  • Courses
  • Tutorials
  • Sign up
  • Log in
  • Home
  • Interactive courses
  • PHP basics
  1. Conditions in PHP 0/14
  2. Arrays and loops in PHP 0/15
  3. Arrays and functions in PHP 0/16
  4. Numbers and strings in PHP 0/14

Chapter 1: Conditions in PHP

14 tasks, 1 summary

Learn how to use conditions in scripts and templates. We will learn about comparison operations and logical operators. Let's finish the pages for our online store.

Start
1. Change the value of the variable Task
2. The if condition in PHP Task
3. Using arithmetic operators in PHP Task
4. Add the price to the product page Task
5. Embedding the condition if in the template Task
6. Using the logical values true and false Task
7. Using the gate OR in PHP Task
8. String concatenation in PHP Task
9. Embedding a variable in a template Task
10. Check several conditions Task
11. Using the gate AND in PHP Task
12. Introduction to else Task
13. Add the delivery cost to the template Task
14. Substitute values from the database with variables Task
15. Summary of “Conditions in PHP” Summary

Cookies ∙ Privacy ∙ License Agreement ∙ About ∙ Contacts ∙ © HTML Academy OÜ, 2019−2025

VISAMastercard

Log in

or

Forgot your password?

Sign up

Sign up

or
Log in

Restore access

Have you forgotten your password or lost access to your profile? Enter your email connected to your profile and we will send you a link to restore access.

Forgot to connect your email to the profile? Email us and we’ll help.

We are using cookies to gather information which will help you use our website most effectively. You can read about this here or disable this feature if you want. By continuing to browse the site, you agree to our use of cookies.