I am wanting to be able to do something to the order of this
$name = "Hello".time().mt_rand();
class $name {
function hellolol() {
echo "LOL";
}
}
$name::hellolol();
So that I can build a reload-able module system in PHP. Is this even possible, and if so, how would I go about doing something like this?
EDIT: I've since turned this into a project that essentially does what the accepted answer suggested. Here's a link: https://github.com/Modfwango/Modfwango