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-oocairo-fontface(3) - debian
lua-oocairo-path(3) - debian
lua-oocairo-matrix(3) - debian
awesomerc(5) - debian
luac(1) - centos
Similar Topics in the Unix Linux Community
Simple rules of the UNIX.COM forums:
Rules for Homework &amp; Coursework Questions Forum
Forum Video Tutorial: How to Use Code Tags
UNIX.COM 2017 Year End Summary
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun