Random String
5
A very simple script to generate random hexa colors.
just modify line 36 to generate more/less colors.
just modify line 36 to generate more/less colors.
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.
13
Generate a random number or string in PHP.
11
Convert an irregular name=value pair string into a formatted array.
13
I needed to send an email through an authenticated SMTP server. I found the snippet on the PHP website to do the trick.
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
16
Format a phone number with php.
4
A simple search array example.
9
Fixed the regular expression to check for more strict requirements.
11
Example of how to use CURL with PHP.









