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.
Check out PHPDocumentor.
An example would be:
As the comments self-explain, you use
@accessto show the visibility of the method (if the code being summarized is a method, of course),@paramto show each parameter, and@returnto show the type of the data being returned. There are many different tags to document many different aspects of the code.