Never fails: search for days, no answer, post it to a forum, find the answer 5 min later.
For all those who are interested, the eval() function is really handy. It takes string value and parses it as php code. For example:
<?php
$test = "print(\"Hello World!\");";
print($test);
eval($test);
?>
Will output:
print("Hello World!");
Hello World!
This is very handy since now I can put objects into a database, query for them and then expect them to know how to represent themselves.
-James