Home > Backend Development > PHP Tutorial > 绝招,php在zend编辑器上开发,代码提示

绝招,php在zend编辑器上开发,代码提示

WBOY
Release: 2016-06-13 10:51:51
Original
851 people have browsed it

绝招,php在zend编辑器下开发,代码提示

单个变量,如果是一个对象,要代码提示的话,需要加上注释:

@var  daoInit

daoInit是类的名称

	/**	 * @var serviceInit	 */	protected $service;
Copy after login


如果是函数,返回的是一个对象,要代码提示的话,主要加上注释:

@return daoInit

daoInit是类的名称

	/**	 * 分库初始化DB	 * 如果有多数据库链接的情况下,会调用该函数来自动切换DB link	 * @param string $db	 * @return dbInit	 */	public function init_db($db = 'default') {		$this->dao->db->init_db($db);		return $this->dao->db;	}
Copy after login


 

1楼AndreMiller昨天 17:56
好像很牛逼的样子 支持
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template