PHP Operators - Page 2
These six PHP operators are used to compare the values of two variables. For example, I might test if one value is equal to another value. The result (or answer) of the comparison is either true or false.
There are three logical operators used for complicated comparisons. By complicated I mean more then one comparison. For example I might ask "is the sky blue and is the grass green". The result of the entire question is either true or false.
These four operators are used to increase or decrease a value of a variable by a step (increment). An example would be a webpage counter. Each time someone views a webpage the counter will increment by 1 step.
| ||||||||||||||||||||||||||
This site needs an editor - click to learn more!
Editor's Picks Articles
Top Ten Articles
Previous Features
Site Map
Content copyright © 2023 by Diane Cipollo. All rights reserved.
This content was written by Diane Cipollo. If you wish to use this content in any manner, you need written permission. Contact
BellaOnline Administration
for details.