String eval assistance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

 


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux