Re: how to delete part of string
| From: | Marc Steinert | Date: | Sat, 23 May 2009 16:56:41 +0000 |
| Subject: | Re: how to delete part of string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293030@lists.php.net to get a copy of this message | ||
I guess you mean GET parameters instead of POST.
$string = preg_replace('/^(.*?)&id=/', '&id=', $_SERVER['QUERY_STRING']);
Don't know, if that's exactly what you wanted.
Greetings from Germany
Marc
Grega Leskovsek wrote:
I have a POST string field and I want to skip some & fields before &id= How do I simply delete operation=nekaj&price=fddf&id=de&id=ta ... into &id=de&id=ta ... Thanks in advance,-- Synchronize and share your files over the web for free http://bithub.net/ My Twitter feed http://twitter.com/MarcSteinert