/gp-includes/lambda.php

Description

create_function wrappers

Functions
echoer (line 20)

Creates a function, which prints $value

void echoer (mixed $value)
  • mixed $value
lambda (line 35)

Creates a function, which accepts $args and returns the expression in $expression.

Items from the optional array $locals can be used as local variables in the function. In case of collision a formal arguments and a key in $locals, the latter will be prefixed with ext_

void lambda (string $args, string $expression, [array $locals = array()])
  • string $args: String with the function arguments
  • string $expression: String with an expression -- the result of the function
  • array $locals: The items in this array will be extracted in the function as local variables.
returner (line 11)

Creates a function, which returns $value

void returner (mixed $value)
  • mixed $value

Documentation generated on Fri, 18 May 2012 01:46:02 +0100 by phpDocumentor 1.4.3