PHP learning records and PHP learning records

Source: Internet
Author: User

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.

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.