PHP Finding Substring Within String With Strstr() – String Function

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

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.