Source Code:
(back to article)
<?php $haystack = "This is an example string."; $needle = "example"; $pos = strpos($haystack, $needle); $newString = substr($haystack, $pos); echo $newString;
Result:
Report an issue