What is the syntax for expressing that characters after a certain string in PHP can be arbitrary, similar to using "like 'rF%'" in MySQL?

In PHP, you can use the strpos() function to find the position of a specific string within another string and then extract the characters after that position using substr(). This allows you to achieve a similar functionality to using "like 'rF%'" in MySQL.

$string = "randomString";
$search = "rF";
$position = strpos($string, $search);

if ($position !== false) {
    $result = substr($string, $position + strlen($search));
    echo $result;
}