Added Canvas 1.1.0, originally not under SCM so no historical development records...
[canvas.git] / library / smarty / plugins / modifier.replace.php
blobfde66cfebeb4b3e9b504714c7dfdd8c6b4dd4fa9
1 <?php
2 /**
3 * Smarty plugin
4 * @package Smarty
5 * @subpackage plugins
6 */
9 /**
10 * Smarty replace modifier plugin
12 * Type: modifier<br>
13 * Name: replace<br>
14 * Purpose: simple search/replace
15 * @link http://smarty.php.net/manual/en/language.modifier.replace.php
16 * replace (Smarty online manual)
17 * @author Monte Ohrt <monte at ohrt dot com>
18 * @param string
19 * @param string
20 * @param string
21 * @return string
23 function smarty_modifier_replace($string, $search, $replace)
25 return str_replace($search, $replace, $string);
28 /* vim: set expandtab: */