Codierungsstandards für die PHP-Entwicklung
/ PHP函數和方法的注釋
PHP函數和方法的注釋
PHP函數和方法的注釋
函數和方法的注釋寫在函數和方法的前面,采用類似下面例子的規(guī)則:
/** * @Purpose: * 執(zhí)行一次查詢 * @Method Name: Query() * * @Param: string $queryStr SQL查詢字符串 * @Param: string $username 用戶名 * * @Author: Michael Lee * * @Return: mixed 查詢返回值(結果集對象) */ function($queryStr,$username) {……}