Smarty : plugins [ class tree: Smarty ] [ index: Smarty ] [ all elements ]

Procedural File: modifier.strip.php

Source Location: /bblog/smarty_plugins/modifier.strip.php ( Revision Log )

Page Details

Smarty plugin

Functions
smarty_modifier_strip  [line 26]

string smarty_modifier_strip( string $text, [string $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

Parameters:
string   $text: 
string   $replace: 

Information Tags:
Version:  1.0
Author:  Monte Ohrt <at ohrt dot com monte at ohrt dot com>
Link:  strip (Smarty online manual)

[ Top ]