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