| [ Index ] |
PHP Cross Reference of GlotPress |
[Source view] [Print] [Project Stats]
create_function wrappers
| File Size: | 45 lines (1 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| 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. |
| gp_parity_factory() X-Ref |
| Returns a function, which returns the string "odd" or the string "even" alternatively. |
| Generated: Wed Oct 4 01:02:16 2017 | Cross-referenced by PHPXref 0.7.1 |