You don't have an account yet?
Become part of our PHP community and register now...
$text = preg_replace( '#\{([a-z0-9_]+)\}#e', '$this->content[\\'\1\\']', $text);
Comment