note 53606 rejected from function.ereg-replace by mazzanet

From: Date: Tue, 07 Jun 2005 10:49:56 +0000
Subject: note 53606 rejected from function.ereg-replace by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-90048@lists.php.net to get a copy of this message
Note Submitter: joeneboy at gmail dot com ---- It looks to me dat ereg_replace is the same as str_replace, because when you use <?php $num = '4'; $string = "This string has four words."; $string = str_replace('four', $num, $string); echo $string; ?> you get the same output as when you use <?php $num = '4'; $string = "This string has four words."; $string = ereg_replace('four', $num, $string); echo $string; ?>

« previous php.notes (#90048) next »