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
 
<LuaSandbox::wrapPhpFunctionLuaSandboxFunction::call>
^LuaSandboxLast updated: Mon, 26 Oct 2026

The LuaSandboxFunction class

(PECL luasandbox >= 1.0.0)

Introduction

Represents a Lua function, allowing it to be called from PHP.

A LuaSandboxFunction may be obtained as a return value from Lua, as a parameter passed to a callback from Lua, or by using LuaSandbox::wrapPhpFunction(), LuaSandbox::loadString(), or LuaSandbox::loadBinary().

Class synopsis

class LuaSandboxFunction {
/* Methods */
public function call(string ...$args): array|bool
public function dump(): string
}

Table of Contents


<LuaSandbox::wrapPhpFunctionLuaSandboxFunction::call>
^LuaSandboxLast updated: Mon, 26 Oct 2026