Instancia de clases, llamadas a funciones y variables dinámicas en PHP

A falta de punteros, en php también podemos hacer referencia a funciones, variables, métodos, objectos, de forma dinámica. Aquí dejo estos links a php.net en los que se documentan la perfección las funciones que lo permiten:

Funciones variables – http://es.php.net/manual/es/functions.variable-functions.php

Variables variables – http://es.php.net/manual/es/language.variables.variable.php

Utilizando la funcion call_user_func – http://es.php.net/manual/es/function.call-user-func.php

Enviando un número de parámetros no conocido call_user_func_array – http://es.php.net/manual/es/function.call-user-func-array.php

Y como puntilla comentar la posibilidad de crear funciones en tiempo de ejecución con create_function – http://es.php.net/manual/es/function.create-function.php

  • Lin

    Never heard of it before, but after reading this can say with assurance, that it’s a point of great interest and fun for me