Logo Search packages:      
Sourcecode: d-push version File versions  Download package

Mail_mimeDecode::_splitBodyHeader ( input )

Given a string containing a header and body section, this function will split them (at the first blank line) and return them.

Parameters:
stringInput to split apart
Returns:
array Contains header and body section private

Definition at line 435 of file mimeDecode.php.

Referenced by _decode(), and Mail_mimeDecode().

    {
        if (preg_match("/^(.*?)\r?\n\r?\n(.*)/s", $input, $match)) {
            return array($match[1], $match[2]);
        }
        $this->_error = 'Could not split header and body';
        return false;
    }

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index