if strpos _SERVER REQUEST_URI edit echo content else pdf_from array pd

1
<? if (strpos($_SERVER['REQUEST_URI'],'edit') != 0) { echo $content; } else { $pdf_from = array('[pdf=','.pdf]'); $pdf_to = array('<iframe src="http://docs.google.com/gview?url=', '.pdf&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>'); echo str_replace($pdf_from,$pdf_to,$content);}?>