note 78914 rejected from function.preg-replace by ezyang

From: Date: Fri, 02 Nov 2007 00:03:01 +0000
Subject: note 78914 rejected from function.preg-replace by ezyang
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-131927@lists.php.net to get a copy of this message
Note Submitter: e_dawg1377 at hotmail dot com ---- This is going to be easy for you, I need to find and replace spaces in a string ,and replace with %20 so I can fill the spaces for a url link?. This is what im trying to no avail?. $location1 = $dstreet . "," . $dtown . "," . $dzip. "," . $dstate; $location = preg_replace('/\s\s+/', '%20', $location1);

« previous php.notes (#131927) next »