<?php
function
doitwell
(
$text
)
{
$original
=
array
(
' "'
,
'" '
)
;
$replaced
=
array
(
' “'
,
'” '
)
;
return
str_replace
(
$original
,
$replaced
,
$text
)
;
}
$tryitnow
=
doitwell
(
'We "see" if "it" works or not'
)
;
echo
$tryitnow
;
?>