title: php 5.3 ereg_replace to preg_replace
body: <pre><code>$this-&gt;Settings = array( "host" =&gt; $host , "user" =&gt; $user , "pass" =&gt; $pass );
      $this-&gt;db = $db;
      $this-&gt;Settings["name"] = ereg_replace  ("_", "", $this-&gt;db);
      $this-&gt;init();
  </code></pre>
  
  <p>I have an application that can't work after migrating to php 5.3 from php 5.2.</p>
  
  <p>Even after i changed the ereg_replace line above to  </p>
  
  <p><code>$this-&gt;aSettings["name"] = preg_replace("/_/", "", $this-&gt;db);</code></p>
  
  <p>It still doesn't get the settings from the db.</p>