Version: v0.8.1 - Beta.  We welcome contributors & feedback.

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)

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)

See Also