note 26752 added to function.preg-replace

From: Date: Mon, 11 Nov 2002 20:13:24 +0000
Subject: note 26752 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-39312@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); -- http://www.php.net/manual/en/function.preg-replace.php http://master.php.net/manage/user-notes.php?action=edit+26752 http://master.php.net/manage/user-notes.php?action=delete+26752 http://master.php.net/manage/user-notes.php?action=reject+26752

« previous php.notes (#39312) next »