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