ray Posted March 8, 2008 Report Posted March 8, 2008 (edited) $teksts = '<p align=\"center\">PHP</p>'; $teksts = preg_replace('/\"/', '"', $teksts); echo $teksts; Rez. <p align=\"center\">PHP</p> vajag <p align="center">PHP</p> \" tiek uzverts kā " . uz kādu pamainīt preg_replace, lai rezultāts būtu man vajadzīgais? Edited March 8, 2008 by ray
Pentiums Posted March 8, 2008 Report Posted March 8, 2008 $teksts = '<p align=\"center\">PHP</p>'; echo stripslashes($teksts);
Recommended Posts