Good day! Currently i'm studying a class which has a following line:
if( $something) { eval ('$actualValue = &$this->'.$value.';'); }
Could you explain to me pro & cons of using eval and writing it without eval (just assign a value via a php regularly )
UPDATE 1
Sorry for this, but i just saw in the other part of the class a more complete version of using eval:
if( $something) {
eval ('$actualValue = &$this->'.$value.';');
if(isset($actualValue)) {
//some code
}
}
It's clearer now... but still there's a question : why not do it without eval... just don't get it. But still thanks everyone for your answers & giving links!