string setOption (
string $optionName
, string $value
)
Setting a Net_URL option
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.
Using Net_URL
<?php
require_once 'Net/URL.php';
$url = new Net_URL;
$url->setOption('encode_query_keys', true);
print_r($url->querystring);
?>