You are here

function Net_URL::addQueryString in Flickr API 5

Adds a querystring item

@access public

Parameters

string $name Name of item:

string $value Value of item:

bool $preencoded Whether value is urlencoded or not, default = not:

File

phpFlickr/PEAR/Net/URL.php, line 232

Class

Net_URL

Code

function addQueryString($name, $value, $preencoded = false) {
  if ($preencoded) {
    $this->querystring[$name] = $value;
  }
  else {
    $this->querystring[$name] = is_array($value) ? array_map('rawurlencode', $value) : rawurlencode($value);
  }
}