With this function you can easily retrieve the current date stamp. Very useful for comparing it with data from a MySQL database.
Get current datestamp
Friday, April 2nd, 2004Encode e-mail address
Friday, April 2nd, 2004Use this handy function to encode e-mail addresses so it still looks good to humans, but can’t be read by (spam) bots.
Crop sentence
Friday, April 2nd, 2004Use this handy function, written by David Speake, to crop a sentence to a certain length. This function makes sure the words don’t get broken up in the middle.
Sort array alphabetically
Friday, April 2nd, 2004This function, used in conjunction with the usort() function, allows you to sort a n array alphabetically, e.g. usort($feeds, “cmp”);
Get month name
Friday, April 2nd, 2004This function changes a numerical month (e.g. 3) into the name of that month (e.g. March).
Javascript Redirect
Friday, April 2nd, 2004With this function you can easily redirect to another page, after a certain amount of time (in seconds).
Javascript GoBack
Friday, April 2nd, 2004This function can be used to redirect to the previous page, after a certain amount of time (in seconds).
Valid ID
Friday, April 2nd, 2004This very short, but useful, codesnippet allows you to quickly validate a numeric ID, often used in a database table.