Open Source Content Management Framework

mgd_eval

  1. Description

mgd_eval -- Evaluate a string as PHP and Midgard code

Description

`void **mgd_eval** (string code, string name)`

Similar to PHP eval() but with support for Midgard templating calls, mgd_eval() executes PHP code given in the code_str string.

Note: this function expects to receive plain PHP code, i.e. not the <?php or ?> enclosings.

Designed by Nemein, hosted by Anykey