The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Back End › Replace PHP string
So this is my code, it’s supposed to replace with
as well as ending, and fix line break within a PHP form submit action.
$questions = $_REQUEST; $comment2 = htmlentities($questions, ENT_QUOTES); $question3 = ereg_replace( "n", "", $comment2); $question4 = ereg_replace( "<code>", "", $question3); $question = ereg_replace( "</code>", " ", $question4);
", $question3); $question = ereg_replace( "</code>", "
", $question4);