Comparison Operators

Comparison Operators

Comparison operators enable you to determine the relationship between two operands. When both operands are strings, the comparison is performed lexicographically. The comparison results in a Boolean value. For the following comparison operators, automatic type conversions  are performed, if necessary.

Comparison Operators

Logical Operators
Logical operators first convert their operands to boolean values and then perform the respective comparison.

Cours informatique

Short-Circuit Evaluation When evaluating the logical and/or operators, you can often know the result without having to evaluate both example, when PHP evaluates  it can tell the result will be false looking only at the left operand, and it won’t continue to evaluate the This might not seem useful right now, but later on, we’ll see how we use it to execute an operation only if a certain condition is

Cours gratuitTélécharger le cours complet

Télécharger aussi :

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *