public static function colorizeLines($text, $fgcolor = null, $bgcolor = null)
    {
        $lines = explode("\n", $text);
        foreach ($lines as &$line) {
            $line = self::colorize($line, $fgcolor, $bgcolor);
        }
        return implode("\n", $lines);
    }
public static function colorizeLines($text, $fgcolor = null, $bgcolor = null)
    {
        $lines = explode("\n", $text);
        foreach ($lines as &$line) {
            $line = self::colorize($line, $fgcolor, $bgcolor);
        }
        return implode("\n", $lines);
    }
public static function colorizeLines ( $ text , $ fgcolor = null , $ bgcolor = null ) { $ lines = explode ( "\n" , $ text ) ; foreach ( $ lines as & $ line ) { $ line = self :: colorize ( $ line , $ fgcolor , $ bgcolor ) ; } return implode ( "\n" , $ lines ) ; }
Returns a text with each lines colorized independently

@param string $text
@param string $fgcolor
@param string $bgcolor
@return string
Returns a text with each lines colorized independently