Remove Date from Google Programmable Search Engine Snippet

The JSON response items.x.snippet from the Google Google Programmable Search Engine API contains a date prefix:

'28 jan 2021 ... David van der Tuijn - Laravel Developer'

If you would like te remove the date prefix please note that the String length of '1 jan 2021' and '10 jan 2021' is not the same therefore, we match on the first occurence of '...' in the first 15 characters (just in case):

function filterSnippet($sValue) {
    // Remove Date

    $strpos = strpos($sValue, '...');

    if ($strpos !== false && $strpos < 15) {
        $sValue = substr($sValue, $strpos + 3);
    }

    return $sValue;
}

Result:

'David van der Tuijn - Laravel Developer'