首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

Lua (class)

Introduction

(PECL lua >=0.9.0)

Class synopsis

Lua {

/* Constants */

const string LUA_VERSION = Lua 5.1.4 ;

/* Methods */

代码语言:javascript
复制
public mixed assign ( string $name , string $value )
代码语言:javascript
复制
public mixed call ( callable $lua_func [, array $args [, int $use_self = 0 ]] )
代码语言:javascript
复制
public mixed __call ( callable $lua_func [, array $args [, int $use_self = 0 ]] )
代码语言:javascript
复制
public __construct ( string $lua_script_file = NULL )
代码语言:javascript
复制
public mixed eval ( string $statements )
代码语言:javascript
复制
public string getVersion ( void )
代码语言:javascript
复制
public mixed include ( string $file )
代码语言:javascript
复制
public mixed registerCallback ( string $name , callable $function )

}

Predefined Constants

Lua::LUA_VERSION

Table of Contents

  • Lua::assign — Assign a PHP variable to Lua
  • Lua::__construct — Lua constructor
  • Lua::eval — Evaluate a string as Lua code
  • Lua::getVersion — The getversion purpose
  • Lua::include — Parse a Lua script file
  • Lua::registerCallback — Register a PHP function to Lua

Lua::assign →

代码语言:txt
复制
 © 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

扫码关注腾讯云开发者

领取腾讯云代金券