public static function parseLines($content)
    {
        // Split by line
        $lines = explode("\n", $content);

        // Trim and convert to lowercase
        $lines = array_map('trim', $lines);
        $lines = array_map('strtolower', $lines);

        // Remove empty lines and comments
        $lines = array_filter($lines, function ($line) {
            return (0 === strlen($line) || '#' === $line[0]) ? false : $line;
        });

        return $lines;
    }
public static function parseLines($content)
    {
        // Split by line
        $lines = explode("\n", $content);

        // Trim and convert to lowercase
        $lines = array_map('trim', $lines);
        $lines = array_map('strtolower', $lines);

        // Remove empty lines and comments
        $lines = array_filter($lines, function ($line) {
            return (0 === strlen($line) || '#' === $line[0]) ? false : $line;
        });

        return $lines;
    }
public static function parseLines ( $ content ) { // Split by line $ lines = explode ( "\n" , $ content ) ; // Trim and convert to lowercase $ lines = array_map ( 'trim' , $ lines ) ; $ lines = array_map ( 'strtolower' , $ lines ) ; // Remove empty lines and comments $ lines = array_filter ( $ lines , function ( $ line ) { return ( 0 === strlen ( $ line ) || '#' === $ line [ 0 ] ) ? false : $ line ; } ) ; return $ lines ; }
Parse content and extract lines.

@param string $content The content to parse

@return array Array of cleaned string
Parse content and extract lines .