This simple function allows you to automatically generate breadcrumbs! Notice that it is important to follow the example given as a comment I mean: - array(URL, TEXT, BOOLEAN) : "TRUE" makes the link active
This function will check any number to see if it is a prime number or not!
Take a text file and display an image on certain days (such as a holiday logo).
keys of arrays contain arrays
Forces a number between two numbers, this helps avoid if lots of statements.
This code will help you to learn how we can convert an image into a base64 string
This snippet will show you how to make read only properties in classes.
Class example to get your balance, and to send an sms using the Clickatell API. No validation happens on the data you submit. This will need to be handled by you. (Maybe I'll add extra code for that later)
Use this snippet to track what pages users have come from to get to your site.
This calculator will calculate the amount of tax of a price.
Turn a string into a readable url. Useful for blogs. Take a title of a post, say, "Best PHP scripts ever", this would create the string, "best-php-scripts-ever"
Need to people out if they have been inactive for too long? Do it with this piece of code.
This basic snippet will create a random authentication code, or just a random string.
Detect whether a a specific date is a holiday.
scope of isAjax function is to check whether request is done via ajax or not.
Sort an object array by object attribute