Questions about echo-php Tutorial

Source: Internet
Author: User
Q: & lt ;? Phpecho & nbsp; phpinfo ();? & Gt; and & lt ;? Phpphpinfo ();? & Gt; what is the difference? The second question: Is echo a function? Why does the output contain no parentheses? What is the difference between parentheses and parentheses? Please give me a detailed explanation of echo usage and online answers. thank you for your questions about echo.
First question:
Echo phpinfo ();
?>
And
Phpinfo ();
?>
What is the difference?

The second question: Is echo a function? Why does the output contain no parentheses? What is the difference between parentheses and parentheses?
Please give me a detailed explanation of echo usage and online answers. thank you.

Echo


------ Solution --------------------
Take a closer look at phpinfo:
In addition to the php configuration information, this function returns the success/failure flag: TRUE if the function is successful, and FALSE if the function fails.

Therefore, phpinfo () outputs php configuration information.
Echo phpinfo () not only outputs php configuration information, but also outputs 1 (if successful) on the page ).

That is to say, if it is only used to view the configuration information of php, both can be used.

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.