|
LuaSandbox::registerLibraryRegister a set of PHP functions as a Lua library 説明
public void LuaSandbox::registerLibrary(string
$libname , array $functions )Registers a set of PHP functions as a Lua library, so that Lua can call the relevant PHP code. For more information about calling Lua functions and the return values, see LuaSandboxFunction::call. パラメータ
戻り値値を返しません。 例
例1 Registering PHP functions to call from Lua
<?php 参考
|