Snippets
12th of April, 2008 (Last modified: 12th of April, 2008) WWW , javascript , php ,
Every time I start on a new coding project I roam through past projects, hunting for useful snippets of code that'll solve whatever it is that I'm currently doing in a faster and more efficient way. This goes for both CSS-hacks, PHP-hacks and JavaScript-hacks. However, roaming through all the different projects for just the right code snippet takes too much time away from what I'm currently doing and there's a limit to how much scavenging I feel like doing.
No more of the scavenging! I've collected some of my most useful code snippets, gathered them in one place for everyone to see and enjoy. Some of the code snippets are from PHP.net user comments and some are hand crafted by yours truly. Feel free to browse the collection and if you have any useful additions to it I would love to hear about them in a comment.
I have tried my best to give credit where due, but nobody's perfect and I would really appreciate it if anyone has any comments as to where the snippets are from. Feel free to use the snippets wherever you like, a small comment as to where you found the snippet would be considered as an added bonus on my part. Have look-see at http://hvassing.com/snippets/.
Comments about improvements, critique or additional snippets would be much appreciated.
