Brief description of expressions in PHP, brief description of PHP expressions _ PHP Tutorial

Source: Internet
Author: User
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...

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.