src/PublicSuffixList.php
protected function parsePSL($fileData)
    {
        $lines = explode("\n", $fileData);

        foreach ($lines as $line) {
            if ($this->startsWith($line, "//") || $line == '') {
                continue;
            }

            // this line should be a TLD
            $tldParts = explode('.', $line);

            $this->buildSubDomain($this->tree, $tldParts);
        }
    }
protected function parsePSL($fileData)
    {
        $lines = explode("\n", $fileData);

        foreach ($lines as $line) {
            if ($this->startsWith($line, "//") || $line == '') {
                continue;
            }

            // this line should be a TLD
            $tldParts = explode('.', $line);

            $this->buildSubDomain($this->tree, $tldParts);
        }
    }
protected function parsePSL ( $ fileData ) { $ lines = explode ( "\n" , $ fileData ) ; foreach ( $ lines as $ line ) { if ( $ this -> startsWith ( $ line , "//" ) || $ line == '' ) { continue ; } // this line should be a TLD $ tldParts = explode ( '.' , $ line ) ; $ this -> buildSubDomain ( $ this -> tree , $ tldParts ) ; } }
Parse the PSL data

@param string $fileData the PSL data

@return void (results in $this->tree)
Parse the PSL data