Finding a Substring Within a String with strstr() : String Find « String « PHP






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!";

?>
           
       








Related examples in the same category

1.String find Demo