Skip to main content

raw_function

Function raw_function 

Source
pub fn raw_function(
    name: &str,
    handler: impl Fn(&Args<'_>) -> Result<Value, NativeError> + 'static,
) -> FunctionBuilder<'static>
Expand description

A PHP function name that takes any arguments and runs handler over them unconverted. What it returns goes back to PHP; a value it passed through (Args::pass) goes back as the very same zval.