previousNet_URL Constructor (Previous) (Next) Net_URL_Mappernext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Net_URL::setOption

Net_URL::setOption – Setting options with Net_URL

Synopsis

require_once 'Net/URL.php';

string setOption ( string $optionName , string $value )

Description

Setting a Net_URL option

Parameter

List of options
Name Description
encode_query_keys This will encode the query keys if set to true. By default set to false.

  • string $optionName - The option name to set.

  • string $value - The value of the option to set.

Example

Using Net_URL

<?php
require_once 'Net/URL.php';
$url = new Net_URL;
$url->setOption('encode_query_keys'true);
print_r($url->querystring);
?>
previousNet_URL Constructor (Previous) (Next) Net_URL_Mappernext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.