Evaluates a string of php codes and process the returned value from the code. Where php_code is the actual php code to be evaluated. The returned value can be either a string, array or a recordset.
@EVAL return "The time stamp is now ".time();
Using the @EVAL command you can write php codes to do almost anything possible with php scripts today. This is probably the most flexible and powerful of all the commands as it opens up TV bindings to virtually unlimited possibilities.
You can nest one @ binding inside another. For example, an @EVAL binding can be placed inside chunk while you can use the @CHUNK binding to retrieve the chunk containing @EVAL.
Suggest an edit to this page.