Lua::registerCallback

Lua::registerCallback

(No version information available, might only be in Git)

Lua::registerCallbackRegister a PHP function to Lua

Description

public mixed Lua::registerCallback ( string $name , callable $function )

Register a PHP function to Lua as a function named "$name"

Parameters

name
function

A valid PHP function callback