Simple random color generator.
This will replace all html tags with a particular string.
Do you display data that comes from a database? make it easy to read by making the backgrounds alternating colors.
Use this snippet to track what pages users have come from to get to your site.
This function will round numbers to the nearest multiple. For example if you want to round numbers to the nearest 100, and you have 55.5 it will round to 100.
Replace substrings in a haystack with perl regular expression using preg_match_all()
Return strings that are between two start and stop positions.
Code for chatting with others across the internet.
This snippet will show you how to make read only properties in classes.
This snippet just reads the whole site in a string.
This snippet opens a file, reads content from it and closes it.
This script shows how to redirect to a specific site.
Used to generate a random amount of random letters, uppercase, lowercase, and numbers. You can add more characters in the $chars array, separating with "," after each, with no "," at the end. Enjoy!
If a class implements an interface from another package you might run into trouble if you do not include the interface in your package. This class allows you to reduce coupling by generating empty interfaces at runtime if necessary. The class will try to autoload the interface and if this is not possible it will generate it.
it redirects to the specified url in 3 seconds