A brief description of the expressions in PHP, a brief introduction to PHP expressions
An expression is an important concept in PHP that can be interpreted as "anything with value." In this tutorial, we refer to the syntax of expressions, and we use "expr" to represent expressions.
Here is an expression:
$x > $y;
In the example above, when the value of $x is greater than $y, the expression value is true, otherwise false.
We often determine the logic of our next step by judging the value of an expression (including specific values and Boolean values), as in the following example:
<?PHPIF ($x > $y) {echo "x > Y";}? >
This example uses the IF logic to judge that the condition is the $x > $y expression in parentheses, and if $x > $y is True, then the word "y > x" is output. Of course, the actual situation would be much more complicated.
Expressions are widely present in our PHP programming.
The above content is small to introduce you to the expression in PHP, we hope to help!
http://www.bkjia.com/PHPjc/1133050.html www.bkjia.com true http://www.bkjia.com/PHPjc/1133050.html techarticle A brief description of the expression in PHP, a brief description of the PHP expression is an important concept in PHP that can be interpreted as "anything with value". In this tutorial, it involves the expression of the language ...