| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Whats the quickest way to extract data from string?|
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