What function can be used to search for a specific substring within a string in PHP?

To search for a specific substring within a string in PHP, you can use the `strpos()` function. This function returns the position of the first occurrence of a substring within a string. If the substring is not found, it returns `false`. You can then use this position to extract or manipulate the substring as needed.

$string = "Hello, world!";
$substring = "world";

if(strpos($string, $substring) !== false){
    echo "Substring found at position: " . strpos($string, $substring);
} else {
    echo "Substring not found";
}