“ When working with php, you will often come across the common problem of replacing or grabbing a specific chunk of a string. The way I look at it, you have two main options that come directly out of php’s function api. You can either use a simple, quick and easy str_replace() function, or you can dive into the world of regular expressions and tackle the problem a little more smartly using preg_replace(). ”
Disclaimer: The views expressed herein are solely those
of Eric Brooks. They do not necessarily
reflect those of his employers, friends, contacts, family, or even his pets (though my cat,
acknowledge my right to psychoanalyze you, practice accupuncture, and mock you incessantly
with every visit. As the user, you also acknowledge that the author has been legally declared
a "Problem Adult" by the Commonwealth of Pennsylvania, and is therefore not
responsible for any of his actions.