smarty_function_escape_special_chars
smarty_function_escape_special_chars
smarty_literal_compiler_param
smarty_make_timestamp
smarty_mb_from_unicode
smarty_mb_str_replace
smarty_mb_to_unicode
smarty_mb_wordwrap
smarty_function_escape_special_chars(string $string) : string
Function: smarty_function_escape_special_chars
Purpose: used by other smarty functions to escape
special chars except for already escaped ones
author | Monte Ohrt <monte at ohrt dot com> |
---|
string
text that should by escaped
string
smarty_function_escape_special_chars(string $string) : string
Function: smarty_function_escape_special_chars
Purpose: used by other smarty functions to escape
special chars except for already escaped ones
author | Monte Ohrt <monte at ohrt dot com> |
---|
string
text that should by escaped
string
smarty_literal_compiler_param(array $params, integer $index, mixed $default) : mixed
author | Rodney Rehm |
---|
array
parameter array as given to the compiler function
integer
array index of the parameter to convert
mixed
value to be returned if the parameter is not present
\SmartyException |
if parameter is not a literal (but an expression, variable, …) |
---|
mixed
evaluated value of parameter or $defaultsmarty_mb_from_unicode(integer | array $unicode, string $encoding) : string
link | for inspiration |
---|---|
author | Rodney Rehm |
integer
array
single unicode or list of unicodes to convert
string
encoding of returned string, if null mb_internal_encoding() is used
string
unicode as character sequence in given $encodingsmarty_mb_str_replace(string $search, string $replace, string $subject, int $count) : string
author | Rodney Rehm |
---|
string
the string to be searched
string
the replacement string
string
the source string
int
&$count number of matches found
string
replaced stringsmarty_mb_to_unicode(string $string, string $encoding) : array
link | for inspiration |
---|---|
author | Rodney Rehm |
string
characters to calculate unicode of
string
encoding of $string, if null mb_internal_encoding() is used
array
sequence of unicodessmarty_mb_wordwrap(string $str, int $width, string $break, boolean $cut) : string
link | for similarity |
---|---|
author | Rodney Rehm |
string
the string to wrap
int
the width of the output
string
the character used to break the line
boolean
ignored parameter, just for the sake of
string
wrapped string