📜  php 通过名称 preg_match 获取 cookie - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:47.329000             🧑  作者: Mango

代码示例1
$cookie_name = 'cookie_';
foreach ($_COOKIE as $name => $value) {
    if (stripos($name,$cookie_name) === 0) {
        $cookies[] = $name;
    }
}