Ver Mensaje Individual
  #4 (permalink)  
Antiguo 09/08/2007, 16:19
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: Variable que contiene código php - eval

Puedes usar:
Código PHP:
$labelExp explode"::"$label );
$class $labelExp[0];
$label $labelExp[1];

$ref = new ReflectionClass$class );
echo 
$ref->getConstant$label ); // Te imprime el valor de tu constante. 
Saludos.