Comments on PHP functions and methods


Comments for functions and methods are written in front of the functions and methods, using rules similar to the following example:

/** 
* @Purpose: 
* 执行一次查询 
* @Method Name: Query()
* 
* @Param: string $queryStr SQL查询字符串 
* @Param: string $username 用户名
* 
* @Author: Michael Lee
*
* @Return: mixed 查询返回值(结果集对象) 
*/ 
function($queryStr,$username)
{……}