
Quotation mark conversion: vertical to curly
By: a guest on
Jun 5th, 2011 | syntax:
PHP | size: 0.22 KB | hits: 160 | expires: Never
<?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;
?>