Posted By

petrafull on 10/27/09


Tagged

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  

Comments

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

On the php.net documentation:

Warning

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.