Trick, PHP developed on the Zend Editor, code hints

Source: Internet
Author: User
Trick, PHP developed under the Zend Editor, code hints

A single variable, if it is an object, you need to add a comment to the code hint:

@var Daoinit

Daoinit is the name of the class

/** * @var serviceinit */protected $service;


If it is a function, the return is an object, to code hints, the main plus comments:

@return Daoinit

Daoinit is the name of the class

/** * Sub-Library Initialization db * If there are multiple database links, this function is called to automatically switch DB link * @param string $db * @return dbInit */public function init_db ($db = ' Def Ault ') {$this->dao->db->init_db ($db); return $this->dao->db;}


1 floor Andremiller yesterday 17:56
Looks like a pretty good look. Support
  • 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.