Here’s an example:
$string = "<strong>##title##</strong><p>##some_text##</p>";
Here’s the PHP:
echo strtr($string,
array(
'##title##' => "The Spice...",
'##some_text##' => "Will flow!!!"
)
);
Here’s the result:The Spice…
Will flow!!!
-
skrolikowski posted this