PHP Finding Position Of Substring With Strpos() – String Function

<?php
$membership = "asdfasdf";
if ( strpos($membership, "mz") === 0 ) {  print "hello mz";
}
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.