src/Parse.php
private function handleQuote(array &$emailAddress)
    {
        if ($emailAddress['quote_temp']) {
            $emailAddress['name_parsed'] .= $emailAddress['quote_temp'];
            $emailAddress['name_quoted'] = true;
            $emailAddress['quote_temp'] = '';
        } elseif ($emailAddress['address_temp']) {
            $emailAddress['name_parsed'] .= $emailAddress['address_temp'];
            $emailAddress['name_quoted'] = $emailAddress['address_temp_quoted'];
            $emailAddress['address_temp_quoted'] = false;
            $emailAddress['address_temp'] = '';
            if ($emailAddress['address_temp_period'] > 0) {
                $emailAddress['invalid'] = true;
                $emailAddress['invalid_reason'] = 'Periods within the name of an email address must appear in quotes, such as "John Q. Public" <john@qpublic.com>';
            }
        }
    }
private function handleQuote(array &$emailAddress)
    {
        if ($emailAddress['quote_temp']) {
            $emailAddress['name_parsed'] .= $emailAddress['quote_temp'];
            $emailAddress['name_quoted'] = true;
            $emailAddress['quote_temp'] = '';
        } elseif ($emailAddress['address_temp']) {
            $emailAddress['name_parsed'] .= $emailAddress['address_temp'];
            $emailAddress['name_quoted'] = $emailAddress['address_temp_quoted'];
            $emailAddress['address_temp_quoted'] = false;
            $emailAddress['address_temp'] = '';
            if ($emailAddress['address_temp_period'] > 0) {
                $emailAddress['invalid'] = true;
                $emailAddress['invalid_reason'] = 'Periods within the name of an email address must appear in quotes, such as "John Q. Public" <john@qpublic.com>';
            }
        }
    }
private function handleQuote ( array & $ emailAddress ) { if ( $ emailAddress [ 'quote_temp' ] ) { $ emailAddress [ 'name_parsed' ] .= $ emailAddress [ 'quote_temp' ] ; $ emailAddress [ 'name_quoted' ] = true ; $ emailAddress [ 'quote_temp' ] = '' ; } elseif ( $ emailAddress [ 'address_temp' ] ) { $ emailAddress [ 'name_parsed' ] .= $ emailAddress [ 'address_temp' ] ; $ emailAddress [ 'name_quoted' ] = $ emailAddress [ 'address_temp_quoted' ] ; $ emailAddress [ 'address_temp_quoted' ] = false ; $ emailAddress [ 'address_temp' ] = '' ; if ( $ emailAddress [ 'address_temp_period' ] > 0 ) { $ emailAddress [ 'invalid' ] = true ; $ emailAddress [ 'invalid_reason' ] = 'Periods within the name of an email address must appear in quotes, such as "John Q. Public" <john@qpublic.com>' ; } } }
Handles the case of a quoted name

@param array $emailAddress
Handles the case of a quoted name