fork(3) download
  1. <?php
  2.  
  3. /**
  4. * A test function
  5. *
  6. * @param foo bar
  7. * @return baz
  8. */
  9. function foo( $bar ) {
  10. return $baz;
  11. }
  12.  
  13. /**
  14. * A test function2
  15. *
  16. * @param foo bar
  17. * @return baz
  18. */
  19. function foo2( $bar ) {
  20. return $baz;
  21. }
  22.  
  23. $rc = new ReflectionFunction('foo');
  24. echo $rc->getDocComment();
Success #stdin #stdout 0.04s 52480KB
stdin
Standard input is empty
stdout
/** 
* A test function
*
* @param  foo bar
* @return baz
*/