Say I have a function like this:
function theFunction() { $arr = array(); for ($i=0;$i<10;$i++) { $arr[] = new theObject($i); } return $arr; }
I need to document the return type of a function. I could, of course, use array , but this does not provide all the information that can be provided, and does not tell the developer about the true nature of the function.
How do I document the type "array" [type] "in PHPDoc?
Keelan
source share