server() public méthode

Fetch an item from the SERVER array
public server ( mixed $index, boolean $xss_clean = NULL ) : mixed
$index mixed Index for item to be fetched from $_SERVER
$xss_clean boolean Whether to apply XSS filtering
Résultat mixed
 /**
  * {@inherit}
  */
 public function server($index, $xss_clean = NULL)
 {
     if ($this->mock_state) {
         return $this->_fetch_from_array($this->mock_SERVER, $index, $xss_clean);
     }
     return parent::server($index, $xss_clean);
 }