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
lua-config50(1) - debian
lua50(1) - debian
lua-oocairo-fontface(3) - debian
luac(1) - centos
luac(1) - netbsd
Similar Topics in the Unix Linux Community
Rules for Homework &amp; Coursework Questions Forum
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1)
Status of UNIX.COM Forum Transformation
Denial Of Service Attack Update
Please Welcome Nicki Paul to the Moderator Team!