Brief description of expressions in PHP and brief description of PHP expressions
Expressions are an important concept in PHP. They can be understood as "anything with values ". In this tutorial, the expression syntax is described as "expr.
The following is an expression:
$ X> $ y;
In the preceding example, if the value of $ x is greater than $ y, the expression value is TRUE; otherwise, the expression value is FALSE.
We often determine the logic of the next step by judging the value of an expression (including the specific value and Boolean value), as shown in the following example:
<? Phpif ($ x >$ y) {echo "x> y" ;}?>
This example uses the if logic judgment. The judgment condition is the $ x> $ y expression in parentheses. if $ x> $ y is TRUE ), then output "y> x. Of course, the actual situation is much more complicated.
Expressions are widely used in PHP programming.
The above content is a small part of the php expression, I hope to help you!