![]() |
Documentación GVHIDRA 3.1.5
|
Ir al código fuente de este archivo.
Namespaces | |
namespace | Smarty |
Funciones | |
smarty_modifier_strip ($text, $replace= ' ') |
smarty_modifier_strip | ( | $ | text, |
$ | replace = ' ' |
||
) |
Smarty strip modifier plugin
Type: modifier
Name: strip
Purpose: Replace all repeated spaces, newlines, tabs with a single space or supplied replacement string.
Example: {$var|strip} {$var|strip:" "} Date: September 25th, 2002 strip (Smarty online manual) Monte Ohrt
string | |
string |
Definición en la línea 26 del archivo modifier.strip.php.
{ return preg_replace('!\s+!', $replace, $text); }