Php.call
Php.call($functionName, $arg1, $arg2, ...) -> any
Description
Call a PHP function with optional arguments.
Functions that normally return null will return false instead.
// Standard PHP function
$compressed = Php.call('lzf_compress', $text)
SecurityMany PHP functions are prohibited due to their high risk level. e.g.
eval, system, url_exec, etc.Calling Static Methods
You can call a static class method after the class is loaded.
// file 'misc/php/Abc/VendorClass.php'
Php.require('Abc/VendorClass.php')
Php.call('Abc/VendorClass::staticMethod', 123)