remove() 공개 메소드

Removes the element (if exists) with the supplied key.
public remove ( mixed $key ) : boolean
$key mixed
리턴 boolean Whether the key was succefully remove or false if does not exist
예제 #1
0
 /**
  * @dataProvider orderedMaps
  */
 public function testThatOrderedMapGetReturnsNullForRemovedKeys(IOrderedMap $orderedMap)
 {
     foreach ($this->orderedMapKeyValues() as $key) {
         $orderedMap->set($key, true);
         $orderedMap->remove($key);
         $this->assertNull($orderedMap->get($key), 'The ordered map should return null for the removed key');
     }
 }