Search for a specified character or text within a string in PHP
Description
The following code shows how to search for a specified character or text within a string.
Example
<?php
echo strpos("Hello world!","world");
?>
The code above generates the following result.