Questions about echo

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


Reply to discussion (solution)

1. no difference
2. echo is not a real function, so parentheses are not needed.

Now the world is too impetuous. Save It

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.

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.
......
You have solved my problem. thank you !!

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.