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

Mail_RFC822::_isGroup ( address )

Checks for a group at the start of the string.


string$addressThe address to check.
boolean Whether or not there is a group at the start of the string.

Definition at line 293 of file z_RFC822.php.

References $address, and _splitCheck().

Referenced by _splitAddresses().

        // First comma not in quotes, angles or escaped:
        $parts  = explode(',', $address);
        $string = $this->_splitCheck($parts, ',');

        // Now we have the first address, we can reliably check for a
        // group by searching for a colon that's not escaped or in
        // quotes or angle brackets.
        if (count($parts = explode(':', $string)) > 1) {
            $string2 = $this->_splitCheck($parts, ':');
            return ($string2 !== $string);
        } else {
            return false;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index