src/main/php/com/selfcoders/phpcurl/Curl.php
public function getHeaderContent()
    {
        if (!$this->headerFileHandle) {
            return null;
        }

        fseek($this->headerFileHandle, 0);

        $lines = array();
        while ($line = trim(fgets($this->headerFileHandle), "\n\r")) {
            $lines[] = $line;
        }

        return $lines;
    }
public function getHeaderContent()
    {
        if (!$this->headerFileHandle) {
            return null;
        }

        fseek($this->headerFileHandle, 0);

        $lines = array();
        while ($line = trim(fgets($this->headerFileHandle), "\n\r")) {
            $lines[] = $line;
        }

        return $lines;
    }
public function getHeaderContent ( ) { if ( ! $ this -> headerFileHandle ) { return null ; } fseek ( $ this -> headerFileHandle , 0 ) ; $ lines = array ( ) ; while ( $ line = trim ( fgets ( $ this -> headerFileHandle ) , "\n\r" ) ) { $ lines [ ] = $ line ; } return $ lines ; }
Get the content of the header output if enabled with enabledHeaderOutput.

@return array|null The header output or null if header output was not enabled
Get the content of the header output if enabled with enabledHeaderOutput .