This simple function returns the file extension of a file, such as ".php".
This function let's you grab file extension from an array of filenames
This will grab a random image from a directory and display it on your page.
This will display all the directories in the selected directory (not sub directories of the sub directories).
This basic snippet will create a random authentication code, or just a random string.
This snippet uses cURL to get a graphic and display a thumbnail image on the page without saving it.
Gets a string between two key words and/or phrases.
Get the ID number of a auto incremented field when inserting a value into the database.
Returns the complete class hierarchy of an object or a class name. Can be used as method or function. If you have any trouble with the LGPL licence send me a mail.
Get all possible combinations of a number, multiplying all its prime factors
This demonstrates how to generate a random password, for things such as new member registration, or password resets.
Functions returns the latitude & longitude values of an address (as an array) when the address is passed to the function (as a string)