i want to insert data with function of ereg_replace gives error
<p>hello i want to use a function of php (ereg_replace) for inserting data into my database but I am receiving this error saying  </p>

<pre><code>Deprecated: Function ereg_replace() is deprecated in C:\xampp\htdocs\spdealers\Admin Panel\Property_Insert_Page_exe.php on line 3
</code></pre>

<p>any one please ???</p>

<p>here is the php code : <code>$propertyid = ereg_replace("[^A-Za-z0-9-]", "", $_POST['propertyid'])</code></p>
