Documentación GVHIDRA 3.1.5
Referencia del Archivo modifier.strip.php

Ir al código fuente de este archivo.

Namespaces

namespace  Smarty

Funciones

 smarty_modifier_strip ($text, $replace= ' ')

Documentación de las funciones

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

Versión:
1.0
Parámetros:
string
string
Devuelve:
string

Definición en la línea 26 del archivo modifier.strip.php.

{
    return preg_replace('!\s+!', $replace, $text);
}