Posted By

petrafull on 10/27/09


php replace String

Versions (?)

PHP replace words in a string

 / Published in: PHP

  1. <?php
  2. $variable = ereg_replace('delete', '', $variable);
  3. ?>

Report this snippet  


RSS Icon Subscribe to comments
Posted By: Vordreller on November 6, 2009

On the documentation:


This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.

You need to login to post a comment.