note 74799 rejected from function.preg-replace by nlopess
| From: | nlopess@php.net | Date: | Tue, 01 May 2007 13:52:52 +0000 |
| Subject: | note 74799 rejected from function.preg-replace by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-126076@lists.php.net to get a copy of this message | ||
Note Submitter: danhill at mocapoke dot com
----
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;
?>