PHP Get Cookie nach Namen preg_match

$cookie_name = 'cookie_';
foreach ($_COOKIE as $name => $value) {
    if (stripos($name,$cookie_name) === 0) {
        $cookies[] = $name;
    }
}
Scary Shark