Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $body = "This is a body of {{some_text}} text from a book.";
- $text["some_text"] = "really cool";
- $parsedBody = preg_replace("[{].*[}]/U", $text[""], $body);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement