Lesson #6: PHP Operators

5 Aug 2023 · 11 min
11:10

In this instructional video, the presenter introduces PHP operators and demonstrates how they manipulate and compare variable values. The lesson begins with basic arithmetic operators—addition, subtraction, multiplication, division, and modulus—showing simple examples with two variables (x and y). It then covers increment and decrement operators as shorthand for adding or subtracting one. The tutorial moves on to assignment operators, explaining how they modify a variable’s value (e.g., =, +=, -=, =, /=, %=) and how they differ from comparison operators. Next, comparison operators are detailed, including equality (==), inequality (!=, <>), greater/less than (>, <), and their combined forms (>=, <=), with emphasis on their role in if‑else statements and the use of the exclamation point for logical NOT. Finally, logical operators (AND, OR) are introduced for combining multiple conditions, with practical syntax examples. The presenter notes that operators can be mixed and matched, and concludes the lesson with a brief recap.

Chapters

More from Waylee

0:16
youtube.com

August 23, 2024

2y ago
10:07
youtube.com

login tutorial #1

3y ago
4:30
youtube.com

Lesson #14: PHP $ GET

3y ago
6:24
youtube.com

Lesson 13 PHP Forms

3y ago
6:00
youtube.com

Lesson 12 PHP Functions

3y ago
3:57
youtube.com

Lesson #11: PHP FOR loops

3y ago
7:11
youtube.com

Lesson 10 PHP while loops

3y ago
6:53
youtube.com

Lesson #9: PHP Arrays

3y ago
6:27
youtube.com

Lesson #8: PHP Switch

3y ago
8:25
youtube.com

Lesson #7: PHP If else statements

3y ago
11:10
youtube.com

Lesson #5: PHP Strings

3y ago
See all content