Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/06/2009, 05:55
Avatar de abidibo
abidibo
 
Fecha de Ingreso: mayo-2009
Mensajes: 121
Antigüedad: 15 años, 8 meses
Puntos: 7
Respuesta: Paso de funciones por parametro

Hola, prueba asì:
Código PHP:
function prueba() {
  return 
"funciona";
}
function 
test($function) {
   echo 
$function();
}

test('prueba'); 
Chao!