Description: I searched for a day to find an example of running some PHP that is embedded in the middle of a string that was read from a database. I couldn't find anything, so I wrote this instead!
What it does is find any occurances of <?php blah; ?> in a string, pull out the php code, run it and shove the result of the php back in the string.
Restrictions on usage (tech not legal!) are:
. The php must be a single function call;
. The function must return its output, not print it.
For example, I've used it on a dynamic web site that's essentially text article based. The articles are in a database and sometimes the writers need to link to other articles.