Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7725563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:58:13+00:00 2026-06-01T04:58:13+00:00

Is there anyway to give text editors summary information in a tooltip for custom

  • 0

Is there anyway to give text editors summary information in a tooltip for custom functions/classes etc. in the way that they can do for standard libraries while coding?

Failing this what is the standard way to highlight the purpose, required params etc. for a function/class in PHP.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T04:58:15+00:00Added an answer on June 1, 2026 at 4:58 am

    Check out PHPDocumentor.

    An example would be:

    /**
     * Set the data
     *
     * @access public
     * @param string $field
     * @param mixed $value
     */
    public function __set($field, $value)
    {
      $this->_data[$field] = $value;
    }
    
    /**
     * Get the data
     *
     * @access public
     * @param string $field
     * @return mixed
     */
    public function __get($field)
    {
      return isset($this->_data[$field]) ? $this->_data[$field] : NULL;
    }
    

    As the comments self-explain, you use @access to show the visibility of the method (if the code being summarized is a method, of course), @paramto show each parameter, and @return to show the type of the data being returned. There are many different tags to document many different aspects of the code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there anyway that I can have tabs on an iPhone hide if there
Is there anyway to create a web link without using custom action? I want
Is there any way to give instructions directly to the parser and lexar from
Is there any way (Win32API or other) to get the text from any type
is there anyway to make the textbox bigger than the text when using inline
Is there any way to give constructor args to a Mapper in Hadoop? Possibly
Is there any way I can make an image 3d..like give it a 360
Is there anyway i can calculate the sum of the square of objects in
Is there anyway to hide certain button if matches a rule as follows? The
Is there anyway to have a sort of virtual static member in C++? For

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.