getParameters(); $comment = " /** * ".$meth->getName()." : xX_INFO_Xx *"; foreach($args as $a) { $as = explode('=',$a); $def = rtrim($as[1], "]"); if($def == "") $def = '""'; $comment .= " * @param integer $".$a->getName()." xX_INFO_Xx"; } $comment .= " * @access public * @return array **/ "; $fileLines[$meth->getStartLine()-2] = $comment; } $h = fopen('libs/documentorOutput.class.php','w'); fwrite($h, implode($fileLines)); fclose($h); ?> Output sent to documentorOutput.class.php