扩展PHP Gmail代码多个主题

I'm looking to extend this gmail code to capture multiple Notifications for my VPN First Subject: Start Notification Second Subject: End Notification

I wanna add multiple Subjects which captures same text within body.

I've tried to add multiple lines but if someone could assist me it would be great.

/* connect to gmail */
$hostname = '{imap.gmail.com:993/imap/ssl}INBOX';
$username = 'SECURITY';
$password = 'SECURITY';
/* try to connect */
$inbox = imap_open($hostname,$username,$password) or die('Cannot connect to Gmail: ' . imap_last_error());
/* grab emails */
$emails = imap_search($inbox,'SUBJECT "Notification" TEXT "TEXTHERE"');
/* if emails are returned, cycle through each... */
if($emails) {        
        /* begin output var */
        $output = '';        
        /* put the newest emails on top */
        rsort($emails);        
        /* for every email... */
        foreach($emails as $email_number) {                
                /* get information specific to this email */
                $overview = imap_fetch_overview($inbox,$email_number,0);
                $message = imap_fetchbody($inbox,$email_number,2);                
                /* output the email header information */
                $output.= '<span class="subject">'.$overview[0]->subject.'</span> ';
                $output.= '<span class="date">on '.$overview[0]->date.'</span>';

                /* output the email body */
                $output.= '<table> <tr> <td> '.$message.'</td> </tr> </table>';
}        
        echo strstr($output, '=0A', true);
}
imap_close($inbox);
?>```