$output = preg_replace_callback('/'.$keys.'/sim', create_function('$matches', $key), $output);
\<phrase id \= \"(.*?)\" \/\>
global \$phrase;
return \$phrase -> get(\$matches[1]);
$output = preg_replace_callback('/\<phrase id \= \"(.*?)\" \/\>/sim', create_function('$matches', $key), $output);