Manuel Pear

Net_URL::setOption

Net_URL::setOption -- Setting options with Net_URL

Synopsis

  1. <?php
  2. require_once 'Net/URL.php
  3. ?> 

string setOption (string $optionName, string $value)

Description

Setting a Net_URL option

Paramètres

Tableau 54-1. 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.

Exemple

Exemple 54-1. Using Net_URL

  1. <?php
  2. require_once 'Net/URL.php';  
  3. $url = new Net_URL;  
  4. $url->setOption('encode_query_keys', true);  
  5. print_r($url->querystring);  
  6.  
  7. ?> 

Remonter Remonter
L'éditeur javascript - CSS - Gentoo - Tutoriaux PHP - Tutoriels PHP - Bretagne - php - Moto - Kit graphique