private function readLine($handle)
    {
        $size = 4096;
        $ret = $line = fgets($handle, $size);
        while (strlen($line) === $size - 1 && substr($line, -1) !== "\n") {
            $line = fgets($handle, $size);
        }
        return $ret;
    }
private function readLine($handle)
    {
        $size = 4096;
        $ret = $line = fgets($handle, $size);
        while (strlen($line) === $size - 1 && substr($line, -1) !== "\n") {
            $line = fgets($handle, $size);
        }
        return $ret;
    }
private function readLine ( $ handle ) { $ size = 4096 ; $ ret = $ line = fgets ( $ handle , $ size ) ; while ( strlen ( $ line ) === $ size - 1 && substr ( $ line , - 1 ) !== "\n" ) { $ line = fgets ( $ handle , $ size ) ; } return $ ret ; }
Reads a line of up to 4096 characters.  If the line is larger than that,
the remaining characters in the line are read and discarded, and only the
first 4096 characters are returned.

@param resource $handle
@return string
Reads a line of up to 4096 characters . If the line is larger than that the remaining characters in the line are read and discarded and only the first 4096 characters are returned .