Function __global->comma_list_str_to_arr

Definitions

sources/global3.php

  • Convert a parameter set from a string (for templates) to an array (for PHP code).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$str string No No required parameter N/A N/A The parameters / acceptable parameter pattern, as template safe parameter
$block_symbol_style boolean No No False N/A N/A Whether to leave in block symbol style (i.e. like {$BLOCK} would take, a list not a map)

Returns

  • The parameters / acceptable parameter pattern
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Convert a parameter set from a string (for templates) to an array (for PHP code).
 *
 * @param  string $str The parameters / acceptable parameter pattern, as template safe parameter
 * @param  boolean $block_symbol_style Whether to leave in block symbol style (i.e. like {$BLOCK} would take, a list not a map)
 * @return array The parameters / acceptable parameter pattern
 */

function comma_list_str_to_arr(string $str, bool $block_symbol_style = false) : array