|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
parsing query string
Hi
has anyone any advice on the best way to parse a query string in a URL using PHP? e.g. http://www.domain.tld/index.php?op=...h=somethingelse How is it best to read the vars passed? thanks |
|
#2
|
|||
|
|||
|
fox,
The $_GET (and $HTTP_GET_VARS) array holds all the variables passed in the URL for your convenience - already parsed into nice key=>value pairs and ready to go. ![]() If you wanted to parse them manually, you would have to explode a couple of times (first by the question mark, then by the ampersand - and then again by the equal sign). -Jeb. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > parsing query string |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|