A brief description of the expressions in PHP, a brief introduction to PHP expressions _php Tutorial

Source: Internet
Author: User

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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.