Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2015
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. $body = "This is a body of {{some_text}} text from a book.";
  2. $text["some_text"] = "really cool";
  3. $parsedBody = preg_replace("[{].*[}]/U", $text[""], $body);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement