source: Base/HTTP.php

Last change on this file was 1, checked in by george, 15 years ago
  • Přidáno: Výchozí verze systému.
File size: 534 bytes
Line 
1<?php
2
3class HTTP
4{
5 function GetQueryStringArray()
6 {
7 $Result = array();
8 $Parts = explode('&', $_SERVER['QUERY_STRING']);
9 foreach($Parts as $Part)
10 {
11 if($Part != '')
12 {
13 $Item = explode('=', $Part);
14 $Result[$Item[0]] = $Item[1];
15 }
16 }
17 return($Result);
18 }
19
20 function SetQueryStringArray($QueryStringArray)
21 {
22 $Parts = array();
23 foreach($QueryStringArray as $Index => $Item)
24 {
25 $Parts[] = $Index.'='.$Item;
26 }
27 return(implode('&amp;', $Parts));
28 }
29}
30
31?>
Note: See TracBrowser for help on using the repository browser.