r
String replace helper.
r(string $from, string $to, string $value);
r(array $from, array $to, string $value);
Example:
$A = r('o', '#', 'foo');
$B = r(['f', 'o'], ['!', '#'], 'foo');
Result:
$A = 'f##';
$B = '!##';
Helper functions.
r
String replace helper.
r(string $from, string $to, string $value);
r(array $from, array $to, string $value);
Example:
$A = r('o', '#', 'foo');
$B = r(['f', 'o'], ['!', '#'], 'foo');
Result:
$A = 'f##';
$B = '!##';