class Alumno{
function mostrar($nombre,$edad){
echo "la edad es $edad, nombre: $nombre";
}
}
$clase="Alumno";
$func="mostrar";
$arg="juan,23";
$x=new $clase;
$x->$func($arg);
I only get one argument to the function. I also tried with call_user_func_xxxx
but it comes with array , etc .. Someone who has done something of this?
The idea is to create objects in a dynamic way.