get() public méthode

get item from globals
Since: 3.0.0
public get ( string $key = null, string $index = null ) : mixed
$key string key of the item
$index string index of the array
Résultat mixed
Exemple #1
0
 /**
  * testGetAll
  *
  * @since 2.2.0
  */
 public function testGetAll()
 {
     /* result */
     $result = Request::get();
     /* compare */
     $this->assertArrayHasKey('_SERVER', $result);
 }