Novice, questions about PHP?

Source: Internet
Author: User
Novice, would like to ask how the following code is working:


  
       This is true.
  
       This is false.
  
   

The actual situation is: $expression if it exists or is correct, displays this is true. The error displays this is false.
But how does this work?
This is true. not in the middle, should it be displayed directly? How is this judgment implemented? Just learn php small white, ask for answers!

Reply content:

Novice, would like to ask how the following code is working:


  
       This is true.
  
       This is false.
  
   

The actual situation is: $expression if it exists or is correct, displays this is true. The error displays this is false.
But how does this work?
This is true. not in the middle, should it be displayed directly? How is this judgment implemented? Just learn php small white, ask for answers!

, but it doesn't mean it's a separate piece.

你的代码对电脑来说 就是phphtmlphphtmlphp

They are a whole, this is for the computer to see, you read the code when you use the brain to filter it out.

Have you seen much of your textbook?
if($expression){//your code}
If this is true, execute {}

That's what you're talking about:


  
   

You should understand PHP what, PHP is hypertext preprocessor, hypertext preprocessor, it is a standard scripting language, whether Apache or Nginx, these codes are pre-processed by the PHP interpreter, PHP first read all the Tag blocks of code, and then execute these blocks of code, and output the resulting data, and eventually all the stdout are encapsulated into HTTP response sent to the browser, becoming the last HTML code

  • Related Article

    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.