PHP expressions and PHP expressions. PHP expressions. PHP expressions are an important concept in PHP. they can be understood as "anything with values ". In this tutorial, the expressions are briefly described in PHP, and the PHP expressions are briefly described.
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!
A comment expression is an important concept in PHP. it can be understood as "anything with values ". In this tutorial, the expressions are involved...