Related Content
PHP Live Regex
When creating regular expressions for PHP I tend to use the awesome tool PHP Live Regex.
Regular Expression To Find Single Apersands In Text
Encoding special characters in a block of HTML or other code can be a pain because there might already be ampersands there that impart encoding. This might be an ampersand that has already been encoded with a &, or it might be an ampersand in the code as an if statement or similar.
Some Common Timestamp Intervals
Using timestamps is quite a common practice, but converting them into "real life" times can be a little hard. So here are some common time intervals that you might need.
Convert HTML To ASCII With PHP
The reverse of turning ASCII text into HTML is to convert HTML into ASCII. And to this end here is a little function that does this.
RegExLib.com: The Regular Expression Library
Writing regular expressions can sometimes be a real pain, especially if you are not used to them. Rather than trying for yourself to make a regular expression you might want to think about looking for regular expressions that other people have made.
reWork: A Regular Expression Workbench
Regular expressions are a very useful tool for any programmer wanting to validate input, format strings, change words, reformat data or even split apart a string into an array.
Add new comment