Function __global->closure_eval
Definitions
sources/tempcode.php
- Evaluate some PHP code to put the result into an expression (code is allowed to have side effects).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $code | string | No | No | required parameter | N/A | N/A | The code |
| $parameters | array | No | No | required parameter | N/A | N/A | Template parameters |
Returns
- Result
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Evaluate some PHP code to put the result into an expression (code is allowed to have side effects).
*
* @param string $code The code
* @param array $parameters Template parameters
* @return string Result
*/
function closure_eval(string $code, array $parameters) : string
* Evaluate some PHP code to put the result into an expression (code is allowed to have side effects).
*
* @param string $code The code
* @param array $parameters Template parameters
* @return string Result
*/
function closure_eval(string $code, array $parameters) : string

