note 26752 deleted from function.preg-replace by sander

From: Date: Sat, 15 Feb 2003 15:22:57 +0000
Subject: note 26752 deleted from function.preg-replace by sander
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-43986@lists.php.net to get a copy of this message
Say you want to extract a number from a string that could have extra characters ($ or %, for example), but leave in decimal points. preg_replace("([^0-9.])", "", $yourString);

« previous php.notes (#43986) next »