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? Questions about echo with or without parentheses.
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.
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