Mega Code Archive

 
Categories / Php / Strings
 

Finding the Position of a Substring with strpos()

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