ray Posted March 8, 2008 Report Share 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 Link to comment Share on other sites More sharing options...
andrisp Posted March 8, 2008 Report Share Posted March 8, 2008 '/\\\"/' Bet vispār ir ari stripslashes() Link to comment Share on other sites More sharing options...
Pentiums Posted March 8, 2008 Report Share Posted March 8, 2008 $teksts = '<p align=\"center\">PHP</p>'; echo stripslashes($teksts); Link to comment Share on other sites More sharing options...
Recommended Posts