note 78914 added to function.preg-replace
| From: | e_dawg1377 at hotmail dot com | Date: | Thu, 01 Nov 2007 23:53:18 +0000 |
| Subject: | note 78914 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131926@lists.php.net to get a copy of this message | ||
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);
----
Server IP: 209.41.74.194
Probable Submitter: 24.151.133.199
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- https://master.php.net/note/edit/78914
Del: integrated -- https://master.php.net/note/delete/78914/integrated
Del: useless -- https://master.php.net/note/delete/78914/useless
Del: bad code -- https://master.php.net/note/delete/78914/bad+code
Del: spam -- https://master.php.net/note/delete/78914/spam
Del: non-english -- https://master.php.net/note/delete/78914/non-english
Del: in docs -- https://master.php.net/note/delete/78914/in+docs
Del: other reasons-- https://master.php.net/note/delete/78914
Reject -- https://master.php.net/note/reject/78914
Search -- https://master.php.net/manage/user-notes.php