Source Code:
(back to article)
<?php $string = "Hello World"; $substring = "World"; $result = strstr($string, $substring); echo "The first occurrence of '$substring' in '$string' is '$result'";
Result:
Report an issue