Redaxscript\Request::getServer PHP Méthode

getServer() public méthode

get item from server
Since: 2.2.0
public getServer ( string $key = null ) : string
$key string key of the item
Résultat string
    public function getServer($key = null)
    {
        return self::get($key, 'server');
    }

Usage Example

Exemple #1
0
 /**
  * testServer
  *
  * @since 2.2.0
  */
 public function testServer()
 {
     /* setup */
     Request::setServer('testKey', 'testValue');
     /* result */
     $result = Request::getServer('testKey');
     /* compare */
     $this->assertEquals('testValue', $result);
 }
All Usage Examples Of Redaxscript\Request::getServer