source: branches/mvc/Base/HTTP.php

Last change on this file was 47, checked in by chronos, 10 years ago
  • Odstraněno: Zbytečná PHP ukončovací značka "?>" z konce všech souborů.
File size: 530 bytes
Line 
1<?php
2
3class HTTP
4{
5 function GetQueryStringArray($QueryString)
6 {
7 $Result = array();
8 $Parts = explode('&', $QueryString);
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}
Note: See TracBrowser for help on using the repository browser.