smarty_literal_compiler_param()
smarty_literal_compiler_param(array $params, integer $index, mixed $default = null) : mixed
evaluate compiler parameter
Parameters
array | $params | parameter array as given to the compiler function |
integer | $index | array index of the parameter to convert |
mixed | $default | value to be returned if the parameter is not present |
Throws
- \SmartyException
if parameter is not a literal (but an expression, variable, …)
Returns
mixed —evaluated value of parameter or $default