Lua::registerCallbackRegister a PHP function to Lua Beschreibung
public mixed Lua::registerCallback
( string
$name
, callable $function
)Register a PHP function to Lua as a function named "$name" Parameter-Liste
Rückgabewerte
Returns $this, BeispieleBeispiel #1 Lua::registerCallbackexample
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
array(3) {
[1]=>
float(1)
[2]=>
float(2)
[3]=>
float(3)
}
|