note 843 deleted from function.ereg-replace by jimw

From: Date: Fri, 02 Nov 2001 01:38:46 +0000
Subject: note 843 deleted from function.ereg-replace by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20169@lists.php.net to get a copy of this message
In Perl, one thing I often do is get rid of redundant whitespace, using something like this : $str =~ s/\s+/ /g; If you want to do this using ereg_replace, the following works : $str = eregi_replace("[[:space:]]+", " ", $str);

« previous php.notes (#20169) next »