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
rrdlua(1) - debian
lua-oocairo-scaledfont(3) - debian
awesomerc(5) - debian
lua(1) - centos
luac(1) - netbsd
Similar Topics in the Unix Linux Community
Simple rules of the UNIX.COM forums:
Forum Video Tutorial: How to Use Code Tags
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation