Archive

Archive for July, 2010

Copying Formatted SQL Code to PHP Using Regular Expressions

July 19th, 2010

I often find myself copying formatted SQL code into PHP. I like to keep the code semi-formatted while concatenating it into a single string. To make this easy on myself, I use a handy little regular expression search-and-replace in PHPEd.

Nate Smith Web Development