RE: [PHP] stristr query trouble
| From: | Lawrance Shepstone | Date: | Thu, 13 May 2010 08:08:20 +0000 |
| Subject: | RE: [PHP] stristr query trouble | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-305140@lists.php.net to get a copy of this message | ||
-----Original Message-----
From: Ron Piggott [mailto:ron.php@actsministries.org]
Sent: 13 May 2010 06:02 AM
To: PHP General
Subject: [PHP] stristr query trouble
I am not understanding why 'true' isn't the result of this syntax because
$subjects equals:
$subjects = "Delivery Status Notification(Failure)";
Here is my syntax:
if ( stristr( $subjects, "Delivery Status Notifcation(Failure)" ) ) {
$TIRSFlag = true;
echo "true";
}
_________________________________________________________________________
You have misspelled 'Notification' in your comparison ...
You should probably use Regular Expressions for this kind of thing.
Best of luck,
Lawrance