I wanna catch the output of the eval execution and see only the output of $B , any solution for that?
If i execute the code like this i get output twice:
first from eval
second from $B
pls i dont need questions why i am using eval, and that eval is evil.
I need a solution for exactly this example.
<?php
$A = '<?php echo "Output"; ?>';
eval(" ?> $A <?php ");
$B = ob_get_contents();
echo $B;
?>