PHP document comments for IDE development environments

Source: Internet
Author: User
First, let's get to know the PHP comment syntax and *, single line comment, and multi-line comment .? Phpechohello, world !; Output text, single line comment? Or? Php ** output text, multi-line comment * echohello, world !;? If you want to develop programs in the Eclipse environment and use the appropriate remark syntax, you can move the mouse over the function.

First, let's get to know the PHP comments syntax // and *, single-line comments, and multi-line comments. ? Php echo hello, world !; // Output text, single line comment? Or? Php/** output text, multi-line comment */echo hello, world !; ? If you want to develop programs in the Eclipse environment and use the appropriate remark syntax, you can move the mouse over the function.

First, let's get to know the PHP comments Syntax "//" and "*", single-line comments, and multi-line comments.

Echo "hello, world !"; // Output text, single line comment

?>

Or

/*

* Output text, multi-line comment

*/

Echo "hello, world !";

?>

If you want to develop programs in the Eclipse environment and use the appropriate remark syntax, you can move the mouse over the function name to display the function information and parameter information.

/**

* Generate a URL

* @ Param integer $ page number

* @ Return string returns the string value.

*/

Private function url ($ page ){

Return str_replace (urlencode ('[PAGE]'), $ page, $ this-> url );

}

?>

Param. The keyword indicates the function parameter.

Returen. The keyword indicates the function return value.

Producer: no brother of feihu, no programming!
========================================================== ========================================================== =====
Welcome to the QQ Group for more exchanges: 305397511 focus on php, mysql, jquery, and open-source frameworks

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.