php get cookie by name preg match

Solutions on MaxInterview for php get cookie by name preg match by the best coders in the world

showing results for - "php get cookie by name preg match"
Fabio
20 Sep 2016
1$cookie_name = 'cookie_';
2foreach ($_COOKIE as $name => $value) {
3    if (stripos($name,$cookie_name) === 0) {
4        $cookies[] = $name;
5    }
6}
7
similar questions
queries leading to this page
php get cookie by name preg match