With following snippet you can remove or replace all special characters from a string.
↳ Added by admin on September-16-2013
PHP Constants and Variables can be Insecure if not used properly. Below is an example code that demonstrates how a script may be compromised when register_globals directive is turned ON. The example was taken from security.globals.php:
↳ Added by hamdusa on June-13-2013
5 ways to check if an integer is even or odd. PHP does not provide any mathematical function like is_even to help you check if a given integer is an Even number or Odd. Writing your own such function is not difficult and below are listed a number of alternatives that provide different logical solutions to do this.
↳ Added by hamdusa on June-1-2013
If you have more than one banner that you want to display on your site in random order use following snippet.
↳ Added by admin on January-2-2013
This little PHP snippet will display your advertisement links randomly every time the user re-loads the page.
↳ Added by admin on May-19-2012
This little snippet removes any weird characters and converts everything to lowercase.
↳ Added by admin on April-6-2012
With this PHP function you can validates alphanumeric characters.
↳ Added by admin on December-30-2011
Displaying a favicon on your own site is very easy using Google and the following PHP snippet.
↳ Added by admin on November-27-2011
If you want to remove spam links from your blog comments or from your site use the following snippet:
↳ Added by admin on November-12-2011
To get search engine (Google, Yahoo, MSN) referal keywords using PHP add following snippet in your page.
↳ Added by admin on October-31-2011