Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<InstallationLua::assign>
^LuaLast updated: Mon, 26 Oct 2026

The Lua class

(PECL lua >=0.9.0)

Introduction

Class synopsis

class Lua {
/* Constants */
const string LUA_VERSION = Lua 5.1.4;
/* Methods */
public function assign(string $name, string $value): mixed
public function call(callable $lua_func, array $args = ?, int $use_self = 0): mixed
public function __call(callable $lua_func, array $args = ?, int $use_self = 0): mixed
public function __construct(string $lua_script_file = NULL)
public function eval(string $statements): mixed
public function getVersion(): string
public function include(string $file): mixed
public function registerCallback(string $name, callable $function): mixed
}

Predefined Constants

Lua::LUA_VERSION

Table of Contents


<InstallationLua::assign>
^LuaLast updated: Mon, 26 Oct 2026