Function __global->build_closure_function
Definitions
sources/tempcode_compiler.php
- Build a closure function for a compiled template.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $myfunc | string | No | No | required parameter | N/A | N/A | The function name |
| $parts | array | No | No | required parameter | N/A | N/A | An array of lines to be output, each one in PHP format |
Returns
- Finished PHP code
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Build a closure function for a compiled template.
*
* @param string $myfunc The function name
* @param array $parts An array of lines to be output, each one in PHP format
* @return string Finished PHP code
*/
function build_closure_function(string $myfunc, array $parts) : string
* Build a closure function for a compiled template.
*
* @param string $myfunc The function name
* @param array $parts An array of lines to be output, each one in PHP format
* @return string Finished PHP code
*/
function build_closure_function(string $myfunc, array $parts) : string

