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

Unsets a variable. If no key is passed in, clear all variables.
public clear ( string $key = null )
$key string Key
Пример #1
0
 function testClearAll()
 {
     $this->app->set('c', 1);
     $this->app->clear();
     $var = $this->app->get('c');
     $this->assertEquals(null, $var);
 }