I have two strings that I am comparing. My coding is working but I do not think the way I coded was sturdy.
Perhaps it is sturdy enough - I just need to know if the string. $subject, (which is extracted from an email), contains the values.
I compare after doing some decoding i.e. imap_base64 etc to the message.
I know that I can use strcasecmp but how do I retrieve the results ??
below is what I am currently using -
$subject = 'Notification of Meeting';
$strChrForFwd = 'Fwd: Notification of Meeting';
if ((substr_count($subject, $strAch) > 0) || (substr_count($subject, $strChrForFwd) > 0))