Skip to content

Instantly share code, notes, and snippets.

View abcarroll's full-sized avatar

A.B. Carroll III abcarroll

View GitHub Profile
@abcarroll
abcarroll / HTTP Cookie header parser
Last active September 12, 2015 08:39 — forked from pokeb/HTTP Cookie header parser
Quick and dirty HTTP cookie header parser in PHP
/*
* This clears the LESS.js cache, since it aggressively caches @import statements.
* Credit: Attaboy, https://gist.github.com/attaboy/1346280
* Additional key checks and debugging output by A.B. Carroll. (http://github.com/nezzario)
* License: Assumed MIT/BSD-like license, please give credit where credit is due.
*/
less.env = 'development';
console.log("If you are seeing this in a production environment you are likely doing something wrong or forgot to remove the destroyLessCache() script.");
Array functions:
array_search $needle, $haystack
in_array $needle, $haystack
String functions:
strchr $haystack, $needle
stripos $haystack, $needle
stristr $haystack, $needle
strpos $haystack, $needle
strrchr $haystack, $needle