Finding the Position of a Substring with strpos() : strrpos « String « PHP
- PHP
- String
- strrpos
Finding the Position of a Substring with strpos()
<?php
$membership = "asdfasdf";
if ( strpos($membership, "mz") === 0 ) {
print "hello mz";
}
?>
Related examples in the same category