Skip to content

Instantly share code, notes, and snippets.

@Rudde
Rudde / HTTP Cookie header parser.php
Last active January 20, 2019 19:51 — forked from pokeb/HTTP Cookie header parser
Quick and dirty HTTP cookie header parser in PHP
@Rudde
Rudde / array_filter_key.php
Created May 14, 2016 00:27 — forked from h4cc/array_filter_key.php
Filtering a PHP array by key instead of value.
<?php
/**
* Filtering a array by its keys using a callback.
*
* @param $array array The array to filter
* @param $callback Callback The filter callback, that will get the key as first argument.
*
* @return array The remaining key => value combinations from $array.
*/