Strip HTML
23
This snippet originally is used for targetting ads banners depended on the geographic location of the visitor, but can be used for other purposes. Also originally is used for US and the rest of the world, but you can add check for other countries too.
11
Example of how to use CURL with PHP.
9
Fixed the regular expression to check for more strict requirements.
4
A simple search array example.
16
Format a phone number with php.
3
Given a string, you can return an Enum value
Originally found at http://codeproject.com/dotnet/EnumTips.asp?df=100&forumid=38264&exp=0&select=797671
Originally found at http://codeproject.com/dotnet/EnumTips.asp?df=100&forumid=38264&exp=0&select=797671
13
I needed to send an email through an authenticated SMTP server. I found the snippet on the PHP website to do the trick.
11
Convert an irregular name=value pair string into a formatted array.
13
Generate a random number or string in PHP.
3
Sometimes you need to remove slashes from POST variables which could contain arrays. The standard slipslashes-function only takes a string as parameter.
This function removes slashes from both a simple string and array variable.
This function removes slashes from both a simple string and array variable.









