Function Template

/ Published in: PHP
Save to your folder(s)

Add this template before functions in a library, in order to give a good description of what it is and what it does. Replace all in < and > with your values.

Copy this code and paste it in your HTML
  1. /*
  2. Function: <Function, ex. my_function( $param1, $param2 )>
  3. Description: <Description of what it does>
  4. Parameters: <Parameters for function>
  5. Example: <Show an example of your function in use, ex. my_function( "thisparameter", "newparameter");>
  6. Requirements: <Anything that your function requires>
  7. Notes: <Any other comments you have>
  8. Author: <your name and email/website address>
  9. */

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.