| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
|Accredited PayPal World Seller|
|Whats the quickest way to extract data from string?|
| 11:57 pm on Jan 9, 2006 (gmt 0)|
As I have screwed my mod rewrite (!) I need to extract some information from the url.
"$id = $HTTP_GET_VARS['id'];" doesn't work for some reason if the url doesn't have a slash at the end...
(If the slash is there, then it works fine?)
So I need to quickly extract the value of id (in the above examples 'xxxx').
Whats the best way of doing this? I was thinking about moving it into an array and reading backwards(?).
Thanks in advance
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved