|
LuaSandbox::loadStringLoad Lua code into the Lua environment Description
public LuaSandboxFunction LuaSandbox::loadString(string
$code, string $chunkName = '')Loads Lua code into the Lua environment.
This is the equivalent of standard Lua's Parameters
Return ValuesReturns a LuaSandboxFunction which, when executed, will execute the passed $code. Examples
Example #1 Loading code into Lua The above example will output:
array(1) {
[0]=>
string(12) "Hello, world"
}
See Also
|