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
Return Values
Returns $this, ExamplesExample #1 Lua::registerCallbackexample
<?php The above example will output: array(3) { [1]=> float(1) [2]=> float(2) [3]=> float(3) } |