php8.5
Home/ Manual/ reference / luasandbox/ The LuaSandboxFunction class

The LuaSandboxFunction class

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

Intro

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 { }

Luasandboxfunction

In this section

Source: reference/luasandbox/luasandboxfunction.xml · from the official PHP manual (php/doc-en)