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> |
|---|
stringtext that should by escaped
stringsmarty_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> |
|---|
stringtext that should by escaped
stringsmarty_literal_compiler_param(array $params, integer $index, mixed $default) : mixed
| author | Rodney Rehm |
|---|
arrayparameter array as given to the compiler function
integerarray index of the parameter to convert
mixedvalue to be returned if the parameter is not present
\SmartyException |
if parameter is not a literal (but an expression, variable, …) |
|---|
mixedevaluated value of parameter or $defaultsmarty_mb_from_unicode(integer | array $unicode, string $encoding) : string
| link | for inspiration |
|---|---|
| author | Rodney Rehm |
integerarraysingle unicode or list of unicodes to convert
stringencoding of returned string, if null mb_internal_encoding() is used
stringunicode as character sequence in given $encodingsmarty_mb_str_replace(string $search, string $replace, string $subject, int $count) : string
| author | Rodney Rehm |
|---|
stringthe string to be searched
stringthe replacement string
stringthe source string
int&$count number of matches found
stringreplaced stringsmarty_mb_to_unicode(string $string, string $encoding) : array
| link | for inspiration |
|---|---|
| author | Rodney Rehm |
stringcharacters to calculate unicode of
stringencoding of $string, if null mb_internal_encoding() is used
arraysequence of unicodessmarty_mb_wordwrap(string $str, int $width, string $break, boolean $cut) : string
| link | for similarity |
|---|---|
| author | Rodney Rehm |
stringthe string to wrap
intthe width of the output
stringthe character used to break the line
booleanignored parameter, just for the sake of
stringwrapped string