So what I've got is a page stored in a database that has some content then the PHP function load_users then some more content. What I need to do is search the string retrieved from the database for PHP:FunctionName(Different on everypage) and then replace it with the functions return.
Lets say in the database I have
<h1>Online Users</h1>
PHP:LoadOnline
<p>Blah blah blah blah blah</p>
I want to be able to search for that PHP: and get the function name beside it and then execute it and display the results. Is this possible or am I gonna have to figure something else out?