Parent Directory
|
Revision Log
no message
1 | cvsjoko | 1.1 | <?php |
2 | |||
3 | /* | ||
4 | * Smarty plugin | ||
5 | * ------------------------------------------------------------- | ||
6 | * Type: modifier | ||
7 | * Name: regex_replace | ||
8 | * Purpose: regular epxression search/replace | ||
9 | * ------------------------------------------------------------- | ||
10 | */ | ||
11 | function smarty_modifier_regex_replace($string, $search, $replace) | ||
12 | { | ||
13 | return preg_replace($search, $replace, $string); | ||
14 | } | ||
15 | |||
16 | /* vim: set expandtab: */ | ||
17 | |||
18 | ?> |
MailToCvsAdmin">MailToCvsAdmin | ViewVC Help |
Powered by ViewVC 1.1.26 | ![]() |