note 74799 added to function.preg-replace

From: Date: Fri, 27 Apr 2007 19:17:06 +0000
Subject: note 74799 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-125928@lists.php.net to get a copy of this message
Why is this replacing deleting the $scon string and not even replacing it with the word roger? <?php $scon = file_get_contents("\select_list.html"); $e = "<option value='$file_title'>$y</option>"; echo $e; $newscon = preg_replace($e,"roger",$scon); echo $newscon; ?> ---- Server IP: 64.71.164.2 Probable Submitter: 69.115.221.245 ---- Manual Page -- http://www.php.net/manual/en/function.preg-replace.php Edit -- https://master.php.net/note/edit/74799 Del: integrated -- https://master.php.net/note/delete/74799/integrated Del: useless -- https://master.php.net/note/delete/74799/useless Del: bad code -- https://master.php.net/note/delete/74799/bad+code Del: spam -- https://master.php.net/note/delete/74799/spam Del: non-english -- https://master.php.net/note/delete/74799/non-english Del: in docs -- https://master.php.net/note/delete/74799/in+docs Del: other reasons-- https://master.php.net/note/delete/74799 Reject -- https://master.php.net/note/reject/74799 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#125928) next »