Jelix 1.6.37

modifier.replace.php

Plugin from smarty project and adapted for jtpl

Tags
subpackage

jtpl_plugin

copyright

2001-2003 ispi of Lincoln, Inc.

link
http://smarty.php.net/
link
http://jelix.org/
licence

GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html

Table of Contents

jtpl_modifier_common_replace()  : string
modifier plugin : simple search/replace

Functions

jtpl_modifier_common_replace()

modifier plugin : simple search/replace

jtpl_modifier_common_replace(string $string, string $search, string $replace) : string

You should provide two arguments, like the first both of str_replace

{$mystring|replace:'foo':'bar'}
Parameters
$string : string

the string to modify

$search : string

the string to search

$replace : string
Return values
string

Search results