| Welcome to WebmasterWorld Guest from 22.214.171.124 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|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 is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved