CakeFest 2024: The Official CakePHP Conference

LuaClosure::__invoke

(PECL lua >=0.9.0)

LuaClosure::__invokeluaclosure を起動

説明

public LuaClosure::__invoke(mixed ...$args): void

警告

この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。

パラメータ

args

戻り値

例1 LuaClosure::__invoke()の例

<?php
$lua
= new Lua();
$closure = $lua->eval(<<<CODE
return (function ()
print("hello world")
end)
CODE
);

$lua->call($closure);
$closure();
?>

上の例の出力は以下となります。

hello worldhello world
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top