protected function _isGroup($address)
    {
        // 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;
        }
    }
protected function _isGroup($address)
    {
        // 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;
        }
    }
protected function _isGroup ( $ address ) { // 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 ; } }
Checks for a group at the start of the string.

@param string $address The address to check.
@return boolean Whether or not there is a group at the start of the string.
Checks for a group at the start of the string .