PHP TutorialLesson 15Free preview
PHP Operators
This lesson is part of PHP · All levels
Summary
An operator is a symbol that commands PHP to perform certain operations, such as arithmetic, string merging, comparison, and logic. This lesson groups these operators together with their examples. An understanding of the operator, especially the differences between == and ===, will prevent many bugs on the program.
Key points
- Arithmetic operator: +, -, *, /, % for the calculation
- Operator. Used to combine strings
- Comparison operator: == comparing values, === comparing values and types
- Logical operator: && (and),
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.