PHP documentation is one wild animal, even the underscore_vsCamelCase styling isn't this varied. So given all the types of PHP documentation I have seen so far - which is the standard? How are my functions and methods supposed to be marked up so that the majority of IDE's and documentation libraries can read them?
In the below examples the (type) is one of:
- bool
- int
- array
- object
- string
- float
and the name is just the name of the param variable (like $values)
/*
* Function name
*
* what the function does
*
* @param (type) about this param
* @return (type)
*/
function example((name))
/*
* What the function does
*
* @param (name) about this param
* @return (name)
*/
function example((name))
/**
* Function name
*
* what the function does
*
* @param (type) (name) about this param
* @return (type) (name)
*/
function example((name))
/**
* Function name
* what the function does
*
* Parameters:
* (name) - about this param
*/
function example((name))