protected static function _findHeader($text, $eol)
    {
        $hdr_pos = strpos($text, $eol . $eol);
        return ($hdr_pos === false)
            ? strlen($text)
            : $hdr_pos;
    }
protected static function _findHeader($text, $eol)
    {
        $hdr_pos = strpos($text, $eol . $eol);
        return ($hdr_pos === false)
            ? strlen($text)
            : $hdr_pos;
    }
protected static function _findHeader ( $ text , $ eol ) { $ hdr_pos = strpos ( $ text , $ eol . $ eol ) ; return ( $ hdr_pos === false ) ? strlen ( $ text ) : $ hdr_pos ; }
Find the location of the end of the header text.

@param string $text  The text to search.
@param string $eol   The EOL string.

@return integer  Header position.
Find the location of the end of the header text .