Answers for "php get cookie by name preg_match"

PHP
0

php get cookie by name preg_match

$cookie_name = 'cookie_';
foreach ($_COOKIE as $name => $value) {
    if (stripos($name,$cookie_name) === 0) {
        $cookies[] = $name;
    }
}
Posted by: Guest on May-13-2021

Browse Popular Code Answers by Language