<?php
function wr_replace_text($text){
$replace = array(
'„' => '»',
'“' => '»',
'›' => '»',
'“' => '«',
'”' => '«',
'‹' => '«',
' - ' => ' — ',
' – ' => ' — ',
' –,' => ' —, ',
'...' => '…',
'(c)' => '©'
);
$text = str_replace(array_keys($replace), $replace, $text);
return $text;
}
echo wr_replace_text('iam voluptua. “At vero” eos et a');