Member since 06/04/2009

5 snippets

911 profile views

0 Comment(s) Posted

View their favorites



first submission:submitting first snipplet

segdeha's Recent Snippets

« Prev 1 Next »
This is a great way to save complex objects as cookie values. You can't just json_encode because commas are not legal in cookie values. Remember not to use this for anything too big because cookies have a 4KB limit.
1 403 posted 13 years ago by segdeha
Adds a method to the Array object that lets you slice the array down to everything before the given value.
0 296 posted 13 years ago by segdeha
Assign methods to a Function prototype when you intend to create instances of the type of object. Use object literals when you just need a container for functions.
0 595 posted 13 years ago by segdeha
« Prev 1 Next »