itemAt() public méthode

This method is exactly the same as {@link offsetGet}.
public itemAt ( $key ) : mixed
Résultat mixed the element at the offset, null if no element is found at the offset
Exemple #1
0
 public function testAdd()
 {
     $request = new THttpRequest();
     $request->init(null);
     // Simulate a request with just a service
     $_GET['page'] = 'Home';
     $request->resolveRequest(array('page'));
     $request->Add('param1', 'value1');
     self::assertEquals('value1', $request->itemAt('param1'));
 }