public static function render($string, $fontName)
    {
        if (!in_array($fontName, static::getKnownFonts())) {
            throw new Exception("Error unknown font ID fontID");
        }

        $figletString = FigletEngine::create($string, $fontName);

        return $figletString;
    }
public static function render($string, $fontName)
    {
        if (!in_array($fontName, static::getKnownFonts())) {
            throw new Exception("Error unknown font ID fontID");
        }

        $figletString = FigletEngine::create($string, $fontName);

        return $figletString;
    }
public static function render ( $ string , $ fontName ) { if ( ! in_array ( $ fontName , static :: getKnownFonts ( ) ) ) { throw new Exception ( "Error unknown font ID fontID" ) ; } $ figletString = FigletEngine :: create ( $ string , $ fontName ) ; return $ figletString ; }
Compute text banner from given string

@param string $string
@param string $fontName

@return string
Compute text banner from given string