original_string: public function pop()
      {
          if (0 === count($this->array)) {
              return null;
          }
  
          // get the last hash of array
          end($this->array);
          $hash = key($this->array);
  
          // temporarily hold the element at that spot
          $element = $this->array[$hash];
  
          // forget it in our map and return our temporary
          $this->forget($this->hash_to_key($hash));
  
          return $element;
      }
code: public function pop()
      {
          if (0 === count($this->array)) {
              return null;
          }
  
          // get the last hash of array
          end($this->array);
          $hash = key($this->array);
  
          // temporarily hold the element at that spot
          $element = $this->array[$hash];
  
          // forget it in our map and return our temporary
          $this->forget($this->hash_to_key($hash));
  
          return $element;
      }
code_tokens: public function pop ( ) { if ( 0 === count ( $ this -> array ) ) { return null ; } // get the last hash of array end ( $ this -> array ) ; $ hash = key ( $ this -> array ) ; // temporarily hold the element at that spot $ element = $ this -> array [ $ hash ] ; // forget it in our map and return our temporary $ this -> forget ( $ this -> hash_to_key ( $ hash ) ) ; return $ element ; }
docstring: Treat the map as a stack and pop an element off its end.
  
  @return mixed|null
  @api
docstring_tokens: Treat the map as a stack and pop an element off its end .