Function __global->closure_params_json

Definitions

sources/tempcode.php

  • Serialize the passed parameter names as JSON.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$param array No No required parameter N/A N/A The template bound parameters
$args array No No required parameter N/A N/A The loop directive parameters
$main_function mixed No No required parameter N/A N/A The loop execution function

Returns

  • Result
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Serialize the passed parameter names as JSON.
 *
 * @param  array $param The template bound parameters
 * @param  array $args The loop directive parameters
 * @param  mixed $main_function The loop execution function
 * @return string Result
 */

function closure_params_json(array $param, array $args, callable $main_function) : string