get() публичный Метод

get item from globals
С версии: 3.0.0
public get ( string $key = null, string $index = null ) : mixed
$key string key of the item
$index string index of the array
Результат mixed
Пример #1
0
 /**
  * testGetAll
  *
  * @since 2.2.0
  */
 public function testGetAll()
 {
     /* result */
     $result = Request::get();
     /* compare */
     $this->assertArrayHasKey('_SERVER', $result);
 }