Welcome to my snippet library!
Hello and welcome to my little snippet archive, here you find various functions and
tutorials that I made myself over the years of programming and some that I found.
Currently there are
169 snippets
in the database.
New snippets
Click here to view a list of all snippets.
-
Swap array (PHP)
Swaps all array values to array keys and vice versa.Added: June 21, 2008 - Tags: array functions -
Randomize SQL query results (PHP)
There are many ways to get random database results, here I explain two of them.Added: February 11, 2008 - Tags: database functions, random -
Caching for dynamic content (PHP)
I made this snippet to show how to use the Last-Modified and the ETag headerAdded: February 06, 2008 - Tags: caching, http, tutorials -
Split an array into chunks (PHP)
This function splits a array into a given size.Added: January 10, 2008 - Tags: array functions
-
ROT13 transform (PHP)
Simple example of the ROT13 algorithm. ROT13 is a simple function which rotates theAdded: December 10, 2007 - Tags: encryption, string functions -
Delete temporary files (PHP)
This example shows how to delete specific files after a given time span.Added: December 10, 2007 - Tags: tutorials, directory functions, files -
Format string as machine compatible key (PHP)
This snippet converts a "dirty" string that may contain special characters into a machine compatible...Added: December 09, 2007 - Tags: string functions -
MD5-based block cipher (PHP)
Below is a MD5-based block cipher (MDC-like), which works in 128bit CFB mode.Added: December 09, 2007 - Tags: encryption, string functions
Subscribe new snippets via RSS.