Today I learned the "return" return value in php
What I probably learned is that
inside the function, echo output is not used
but when the result is returned
the result is to package the file and store it in the .rar package
so call the function function directly ( ); When
and the value of the result cannot be intercepted
you need to use echo function (); to output
and when the result is output inside the function
you can directly call the result
function ();
* outside the function The above one-level functions and two-level functions are applicable
------------------------------------------------ -------------------------------------------------- ----
A newbie can only understand so much at his current level
The above introduces the 0407 study notes-return exercise, including return content. I hope it will be helpful to friends who are interested in PHP tutorials.
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn