preg_replace_callback – Perform a regular expression search and replace using a callback

To use this function within a class do the following: