note 10528 deleted from function.ereg-replace by jimw

From: Date: Fri, 02 Nov 2001 01:55:04 +0000
Subject: note 10528 deleted from function.ereg-replace by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20200@lists.php.net to get a copy of this message
[Editor's Note: The carat character has special meaning within a regular expression - it indicates the start of a string.] For those who, just like me, have been reading through the above and thought: 'yeah right', here is a little clue on the difference between ereg_replace and str_replace. ereg_replace can not be used in the following way and str_replace can: <pre> $intovar = ereg_replace("^", " ", $outofvar); The return will be just the same. Strange, because it is said to be binary save. The following can be used for all reading-characters (I hope)(.,:;!@#$%^&*()_+, etc) $intovar = str_replace("^", " ", $outofvar); </pre> Mark.

« previous php.notes (#20200) next »