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 !!