cosi:
Codice PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Untitled 1</title>
</head>
<body>
<?php
$string = 'The quick brown fox "jumped" over the lazy dog.';
echo $string.'
';
$string = str_replace(' "', ' «', $string);
$string = str_replace('" ', '» ', $string);
echo $string.'
';
?>
</body>
</html>
solo assicurati che il file sia codificato utf-8 altrimenti ti visualizza male i caratteri