note 53606 added to function.ereg-replace

From: Date: Tue, 07 Jun 2005 10:46:07 +0000
Subject: note 53606 added to function.ereg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-90047@lists.php.net to get a copy of this message
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; ?> ---- Manual Page -- http://www.php.net/manual/en/function.ereg-replace.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+53606 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53606&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53606&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53606&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53606&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53606&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+53606&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#90047) next »