Since ereg replace is depreciated, i would like to know how to use preg instead. Here is my code and i need to replace { } tags.
$template = ereg_replace('{USERNAME}', $info['username'], $template);
$template = ereg_replace('{EMAIL}', $info['email'], $template);
$template = ereg_replace('{KEY}', $info['key'], $template);
$template = ereg_replace('{SITEPATH}','http://somelinkhere.com', $template);
It won't work if i just switch it to preg replace.