Strings Php

$membership = "pAB7";
if ( strstr( $membership, "AB" ) )
   print "Thank you. Don't forget that your membership expires soon!";
else
   print "Thank you!";
?>