Posts

Showing posts from December, 2016

PHP Operators

Image
3:Logical Operators We Will Discuss following logical operators that are link by PHP language Assume variable One holds 5 and variable Two holds 10 then... Some of the following Examples of Logical Operators are here.... " And " (it's Called Logical AND operator. If both the operands are true then condition becomes true.)                                     (A and B) is true. " Or " (it's Called Logical OR Operator. If any of the two operands are non-zero then condition becomes true.)                      (A or B) is true. " && " (it's Called Logical AND operator. If both the operands are non-zero then condition becomes true.)                                       (A && B) is true. " || " (it's Called Logical OR Operator. If any of the two operands are non-zero then condition becomes true.)                                        (A || B) is true. " ! " (it's Called Lo

Operator Types - PHP

Image
Operator: The Operator is a expression like as we can say 5+7 equal to 12. So Here we will say 5 and 7 operands and + is a operator. Advance PHP Language follow different types of Operators. These are following... Comparison Operators Arithmetic Operators Logical (Relational) Operators Assignment Operators Conditional (Ternary) Operators Here we will discuss all in detail one by one. Comparison Operators We discuss some of comparison operators follow by PHP language Assume variable One holds 5 and variable Two holds 8 then...... Examples of Comparison operators are..... Operator Description  Example " == "    (it will Checks when the value of two operands equal or not equal, if yes then condition becomes true.)                           (A == B) is not true . " != "    (it will Checks when the value of two operands equal or not equal, if the values not equal, that's condition becomes true.)   (A != B) is t