This snippet will show you how to make read only properties in classes.
Ejemplo de foreach
Allows you to change something on a daily basis using just php.
Need to unzip a file? this function can do that for you.
Repeat a string
Take an image, and put a water mark on top of it.
This script shows how to escape characters in php
Updated from the "Zodiac Signs" function already posted here. The other function had some overlapping month/day areas that would determine some birthdate/sign combinations incorrectly. (ie: 10/27 as Libra instead of Scorpio.)
These functions can quickly output tables from mysql database queries, and broaden analogous to a column. Descriptions appear in the code
Using a string of text, find out how many kilobytes or bytes the string would and/or will take up in a file if it gets saved.
This script will extract urls from an html string, and can either return the urls as they are in the html or as formatted urls with http://
This function will take a birthday and calculate an age.
This basic snippet will calculate how many seconds it to a script to start and then end.
This class will convert English nouns from singular to plural.
Iím tired of typing the same stuff over and over. So I spend alot of time writing reusable code. No matter if itís just simple methods or abit more complex objects. Hereís the database object I just wrote. Itís versatile and it really doesnt restrict you to follow any special rules except what objects already restricts you to. You can decide for yourself if you want to complete the query statement or make prepared statement in a valid vsprintf() format.
it redirects to the specified url in 3 seconds
This class is designed to be the interface class with a database (e.g MySQL). This is currently setup to use SQL syntax however can be changed if needed in future for a different type of database technology. Using this class will save a lot of programming if a change was needed. Has 3 main types of user accounts on construction for database privileges (readWrite, readWriteCreate, readOnly). Functions include query, insert, update, delete, number etc (have a look at the code :) )
Gets a subset of words from a string.
This is just a tutorial of how POST variables are used. Very helpful for those starting PHP.
This will replace all html tags with a particular string.