Source Code:
(back to article)
<?php $string = "Hello World"; $search = "World"; $result = strpos($string, $search); if ($result !== false) { echo "Found '$search' in '$string' at position $result"; } else { echo "Did not find '$search' in '$string'"; }
Result:
Report an issue