imap subject = "code. 115 is your id"
I tried using below one but didnt worked.
$headerInfo = imap_headerinfo($connection);
if (!strpos($headerInfo->subject, "code. $id")) {
echo true
}
$headerInfo = imap_headerinfo($connection);
if (!strpos($headerInfo->subject, "code.$id")) {
echo true
}
How can I fetch that?