I'm currently try to run a function inside a class, However I stopped in how I can run the function in that case, More info will be described in the code
function LoadFunction ($class, $function)
{
$class->SHOULD BE STRING
}
I tried $class->$function(); but it doesn't work, I'm out of ideas what's the format that I should use
Please note that, In my script $class already started the class but the only problem is how I'll get the function name from $function since I should use a string after $class->STRING