String eval assistance

From: Date: Tue, 15 Mar 2011 21:34:51 +0000
Subject: String eval assistance
Groups: php.general 
Request: Send a blank email to php-general+get-311879@lists.php.net to get a copy of this message
Hello All, I got some help on this yesterday, but somehow it's not consistant <? $results = "3434approd34"; if(strpos($results['response'], 'APPROVED') !== false) { print "declined"; } else { print "approved"; } ?> The thing is I cant get a consistant response, if it has approved anywhere in the results string, then it should be approved and if the results is APPROVD without the E it shold be delined. Am I doing something wrong. Thanks! Jack

« previous php.general (#311879) next »