How should I use token_replace()? Could somebody give me an example of how to use token_replace()?
I'm trying to write a custom PHP rule for the Rules module that will rewrite few fields of a new saved content, using the values from tokens.
$text = token_replace('token example - [node:title]', array('node' =&gt; node_load(123)));