evaluate

evaluate ( string code ) : mixed

Execute a code given by text in your script.
Evalute can returns something if you use a return in your code. Else it returns null.

Example


console(evaluate("return 2*4"))
//-> 8 

Parameters

code

Code to evaluate