src/classes/CCForge/Php.php
public function comment( $str, $wordwrap = 80 )
	{
		$str = trim( wordwrap( $str, $wordwrap ) );
		$str = str_replace( "\n", "\n".' * ', $str );
		$str = str_replace( "\n".' * *', "\n".' **', $str );
		return $this->add( "/**\n * ".$str."\n */" );
	}
public function comment( $str, $wordwrap = 80 )
	{
		$str = trim( wordwrap( $str, $wordwrap ) );
		$str = str_replace( "\n", "\n".' * ', $str );
		$str = str_replace( "\n".' * *', "\n".' **', $str );
		return $this->add( "/**\n * ".$str."\n */" );
	}
public function comment ( $ str , $ wordwrap = 80 ) { $ str = trim ( wordwrap ( $ str , $ wordwrap ) ) ; $ str = str_replace ( "\n" , "\n" . ' * ' , $ str ) ; $ str = str_replace ( "\n" . ' * *' , "\n" . ' **' , $ str ) ; return $ this -> add ( "/**\n * " . $ str . "\n */" ) ; }
generates an PHP comment

@param string		$str
@param int		$wordwrap
@return string
generates an PHP comment