init
[garradin.git] / include / libs / template_lite / plugins / modifier.replace.php
1 <?php
2 /**
3 * template_lite replace modifier plugin
4 *
5 * Type: modifier
6 * Name: replace
7 * Purpose: Wrapper for the PHP 'str_replace' function
8 * Credit: Taken from the original Smarty
9 * http://smarty.php.net
10 */
11 function tpl_modifier_replace($string, $search, $replace)
12 {
13 return str_replace($search, $replace, $string);
14 }
15 ?>