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

 

Reply via email to