About eval()
Posted: 22 Oct 2012 15:40
Hi everybody,
can someone please give me some examples of usage of the eval() function? According to Wikipedia
XY help says
Should I assume then that XY eval() is a "subset" of other languages eval(), and works only with numeric entities? If so it would explain why this doesn't return 1 but $a
can someone please give me some examples of usage of the eval() function? According to Wikipedia
Code: Select all
In some programming languages, eval is a function which evaluates a string as though it were an expression and returns a result; in others, it executes multiple lines of code as though they had been included instead of the line including the eval.Code: Select all
Evaluates an expression.Code: Select all
eval("$a = 1;");
echo $a;