Skip to main content

eval

Function eval 

Source
pub fn eval(label: &str, code: &str) -> Result<Value, PhpError>
Expand description

Runs PHP statements (no <?php tag) from anywhere on the thread that booted PHP while a request is open, as Php::eval does (a native area holds no Php handle). Fails without touching PHP when no request is open.