note 13229 deleted from ref.strings by jimw

From: Date: Thu, 27 Jun 2002 15:46:26 +0000
Subject: note 13229 deleted from ref.strings by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-32279@lists.php.net to get a copy of this message
[Editor's Note: Or use $str = preg_replace ('\D+', '', $str); --zak@php.net] To strip all non-numeric characters out of a string (such as a standard US phone number - with no extention), use $sPhoneNumeric = implode('', preg_split('/\D/', $sPhoneRaw, -1, PREG_SPLIT_NO_EMPTY));

« previous php.notes (#32279) next »