--- nfo/php/libs/net.php.smarty/plugins/modifier.strip.php 2002/12/19 16:40:20 1.1 +++ nfo/php/libs/net.php.smarty/plugins/modifier.strip.php 2004/06/16 21:58:17 1.2 @@ -1,21 +1,31 @@ + * Name: strip
* Purpose: Replace all repeated spaces, newlines, tabs - * with a single space or supplied replacement string. + * with a single space or supplied replacement string.
* Example: {$var|strip} {$var|strip:" "} - * Author: Monte Ohrt - * Version: 1.0 * Date: September 25th, 2002 - * ------------------------------------------------------------- + * @link http://smarty.php.net/manual/en/language.modifier.strip.php + * strip (Smarty online manual) + * @author Monte Ohrt + * @version 1.0 + * @param string + * @param string + * @return string */ function smarty_modifier_strip($text, $replace = ' ') { - return preg_replace('!\s+!', $replace, $text); + return preg_replace('!\s+!', $replace, $text); } /* vim: set expandtab: */