Project

General

Profile

1
<?php
2
  /**
3
  * QuickSkin Extension replace
4
  * String Replace
5
  *
6
  * Usage Example:
7
  * Content:  $template->assign('PATH', $path_tranlated);  //  C:\Apache\htdocs\php\test.php
8
  * Template: Script Name: {replace:PATH,'\\','/'}
9
  * Result:   Script Name: C:/Apache/htdocs/php/test.php
10
  *
11
  * @author Andy Prevost andy@codeworxtech.com - original by Philipp v. Criegern philipp@criegern.de
12
  */
13
  function qx_replace ( $param, $pattern, $replace ) {
14
    return str_replace( $pattern, $replace, $param );
15
  }
(34-34/43)