PHP learning records and PHP learning records
This is my first blog. I am a beginner in PHP. I didn't know anything about it before. Now I am going to buy some books to study. I am not talking about it. Let's start recording my notes.
Function: The English name of a function is function, that is, the meaning of a function. You need to add function + function name + parameter + content to a user-defined function: the specific example is as follows:
Function name_function (canshu1, canshu2)
{
Content
}
2. function call:
{
<HTML>
<HEAD> <meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
</HEAD>
<BODY>
<? Php
Function hello ($ say)
{
Return $ say. ";
}
Echo hello ('leaves the original grass, one year old and one withered. ');
?>
</BODY>
</HTML>
}The output result is as follows:
Summary: The function copies the parameters once during the input operation and returns them to the function using the parameters.