Function smarty_literal_compiler_param
evaluate compiler parameter
Package: Smarty\PluginsShared
Author: Rodney Rehm
Located at plugins/smarty/smarty_source/plugins/shared.literal_compiler_param.php
Author: Rodney Rehm
Located at plugins/smarty/smarty_source/plugins/shared.literal_compiler_param.php
array |
$params |
parameter array as given to the compiler function |
integer |
$index |
array index of the parameter to convert |
mixed |
$default = null |
value to be returned if the parameter is not present |
mixed
|
evaluated value of parameter or $default |
|
if parameter is not a literal (but an expression, variable, …) |