What is PHP language structure?

Source: Internet
Author: User
What is the PHP language structure? I have seen echo, die, and nbsp are PHP language structures. Who can give me a better image? I have a better understanding of PHP. Thank you very much. To be honest, you don't need to figure it out. just remember that they & nbsp; do not return values. what is the PHP language structure that cannot be used to return values?
When I was a beginner in PHP, I saw echo. die is a PHP language structure.
Who can give me a better image? I have a better understanding of PHP.
Thank you very much.
------ Solution --------------------
To be honest, you don't need to figure it out, as long as you remember that they do not return values and cannot be used in situations where they need to return values.


------ Solution --------------------
Language structure functions
Most of them do not return values, either or not.
Most of the statements that can be used must be called using functions.
Most of them are keywords, not keywords.
Most of the corresponding opcode does not have opcode
The source code is not defined by the PHP_FUNCTION macro. the source code is defined by the PHP_FUNCTION macro.

That is to say, the language structure is part of the php syntax.
The function is just a function ......


Reference:
When I was a beginner in PHP, I saw echo. die is a PHP language structure.
Who can give me a better image? I have a better understanding of PHP.
Thank you very much.

------ Solution --------------------
The language structure is actually the source of php and involves very little content. Common examples include sequence, branch, and loop.
For example, echo die, if else break, etc.
In fact, you don't need to care about this concept. you only need to know how to use this statement, and use it in any scenarios.
In the future, when you write a program, no one cares that you are using a language structure or function. what you want is basically the final result.
------ Solution --------------------
Agree with the opinion above
------ Solution --------------------
To put it bluntly, the php System keyword is the php language structure. common obfuscation: echo, print, array, die, isset, unset, empty, require, list, and empty. remember that these interviews are sufficient!

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.