|
LuaSandbox::loadStringLoad Lua code into the Lua environment 説明
public LuaSandboxFunction LuaSandbox::loadString(string
$code , string $chunkName = '')Loads Lua code into the Lua environment.
This is the equivalent of standard Lua's パラメータ
戻り値Returns a LuaSandboxFunction which, when executed, will execute the passed $code. 例
例1 Loading code into Lua
上の例の出力は以下となります。 array(1) { [0]=> string(12) "Hello, world" } 参考
|