Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php // taková funkcionální pochoutka...
$expcook = explode('; ', $cookiesString);
$lincook = array_map(function($v){return explode('=', $v, 2);}, $expcook);
$cookies = array_combine(array_map(function($v){return $v[0];}, $lincook), array_map(function($v){return $v[1];}, $lincook));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment