Lua::call
(PECL lua >=0.9.0)
Lua::call — Call Lua functions
Description
Warning
This function is currently not documented; only its argument list is available.
Parameters
- lua_func
-
Function name in lua
- args
-
Arguments passed to the Lua function
Return Values
Examples
Example #1 Lua::call()example
<?php
$lua = new Lua();
$lua->eval(<<<CODE
function dummy(foo, bar)
print(foo, ",", bar)
end
CODE
);
$lua->call("dummy", array("Lua", "geiliable\n"));
var_dump($lua->call(array("table", "concat"), array(array(1=>1, 2=>2, 3=>3), "-")));
?>
The above example will output something similar to:
Lua,geiliable string(5) "1-2-3"
See Also
- Lua::__call() - Magic method for Lua to call Lua functions




