lua.registercallback(3) php man page | unix.com

Man Page: lua.registercallback

Operating Environment: php

Section: 3

LUA.REGISTERCALLBACK(3) 						 1						   LUA.REGISTERCALLBACK(3)

Lua::registerCallback - Register a PHP function to Lua

SYNOPSIS
public mixed Lua::registerCallback (string $name, callable $function) DESCRIPTION
Register a PHP function to Lua as a function named "$name" PARAMETERS
o $name - o $function - A valid PHP function callback RETURN VALUES
Returns $this, NULL for wrong arguments or FALSE on other failure. EXAMPLES
Example #1 Lua.registerCallback(3)example <?php $lua = new Lua(); $lua->registerCallback("echo", "var_dump"); $lua->eval(<<<CODE echo({1, 2, 3}); CODE ); ?> The above example will output: array(3) { [1]=> float(1) [2]=> float(2) [3]=> float(3) } PHP Documentation Group LUA.REGISTERCALLBACK(3)
Related Man Pages
awesomerc(5) - debian
luac(1) - centos
rrdlua(1) - centos
lua(1) - netbsd
luac(1) - netbsd
Similar Topics in the Unix Linux Community
New Code Tags (Syntax Highlighting)
Status of UNIX.COM Forum Transformation
Please Welcome Ravinder Singh to the Moderation Team
Please Welcome Nicki Paul to the Moderator Team!