K
K
Konstantin2016-11-16 21:58:50
NoSQL
Konstantin, 2016-11-16 21:58:50

How to pass parameters to LUA (tarantool)?

I use this client https://github.com/tarantool/tarantool-php to connect to tarantool from php.
There is such a method evaluate.

$tnt = new Tarantool();
$script = <<<LUA
 <!--- как вот здесь получить переданные аргументы
LUA;

$tnt->evaluate($script, array(1, 2));

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin, 2016-11-17
@andronof

Found the answer myself:

$script = <<<LUA
 local params={...}
LUA;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question