Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of yagyog  >  clsManUrlV1  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: test.php
Class: clsManUrlV1
Build URL query string from a list of parameters
Author: By
Last change:
Date: 2005-05-17 02:57
Size: 435 bytes
 

Contents

Class file image Download
$manUrlv1 = new manUrlv1();
$param = $manUrlv1->getValuePar("nameparam");
//test 1
if ($param != "") echo "not param";
else
echo $param;


//test 2
$manUrlv1->removeAllPar();
$manUrlv1->addParComplete("one","onevalue");
$manUrlv1->addParComplete("two","twovalue");

echo $manUrlv1->buildPars(); //output ->  ?one=onevalue&two=twovalue
echo $manUrlv1->buildPars(false); //output ->  one=onevalue&two=twovalue