2
Good evening, everyone
There is the possibility to rotate this:
<?php
$variavel = 'foreach($v1 as $v2){echo $v2;};';
echo $variavel;
?>
Or is there any way to run a class within a variable (a Function I know has):
<?php
$variavel = 'class teste(){function oi(){echo 'oi';}}';
echo $variavel->teste->oi();
?>
something like.
Thank you in advance
Just one question, what’s the point of this?
– Guilherme Nascimento
Is a template engine or will run a stored code block?
– Papa Charlie
Good morning buddy, the goal of this is for the following: I use Doctrine ORM, so I have all tables and fields in my database mapped into classes. Only if I wanted I had an idea of the client being able to add more fields in the table. The cool thing is that the default fields (fields written directly in the php file) cannot be deleted, it can only delete the fields (variables and gets and sets) that it created. Do you understand? A hug
– Wagner
Papa Charlie, regarding the template engine, I will use for this too. I did not know how to give the name to my creation! srsrsrsr I didn’t know it was called template engine! But I was happy to know that my idea does not exist in operation yet. Thank you friend. Hug
– Wagner