Mecha CMS

Helper functions.

r

String replace helper.

2.0.02.2.0

r(string $from, string $to, string $text);
r(array $from, array $to, string $text);

Example:

$A = r('o', '#', 'foo');
$B = r(['f', 'o'], ['!', '#'], 'foo');

Result:

$A = 'f##';
$B = '!##';