[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-includes/ -> lambda.php (summary)

create_function wrappers

File Size: 38 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  returner()
  echoer()
  lambda()

Functions
Functions that are not part of a class:

returner( $value )   X-Ref
Creates a function, which returns $value

param: mixed $value

echoer( $value )   X-Ref
Creates a function, which prints $value

param: mixed $value

lambda( $args, $expression, $locals = array()   X-Ref
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_

param: string $args String with the function arguments
param: string $expression String with an expression -- the result of the function
param: array $locals The items in this array will be extracted in the function as local variables.



Generated: Thu May 24 03:59:35 2012 Hosted by follow the white rabbit.