original_string: function _checkDelExpect($error_code)
      {
          $deleted = false;
          foreach ($this->_expected_errors as $key => $error_array) {
              if (in_array($error_code, $error_array)) {
                  unset($this->_expected_errors[$key][array_search($error_code, $error_array)]);
                  $deleted = true;
              }
  
              // clean up empty arrays
              if (0 == count($this->_expected_errors[$key])) {
                  unset($this->_expected_errors[$key]);
              }
          }
  
          return $deleted;
      }
code: function _checkDelExpect($error_code)
      {
          $deleted = false;
          foreach ($this->_expected_errors as $key => $error_array) {
              if (in_array($error_code, $error_array)) {
                  unset($this->_expected_errors[$key][array_search($error_code, $error_array)]);
                  $deleted = true;
              }
  
              // clean up empty arrays
              if (0 == count($this->_expected_errors[$key])) {
                  unset($this->_expected_errors[$key]);
              }
          }
  
          return $deleted;
      }
code_tokens: function _checkDelExpect ( $ error_code ) { $ deleted = false ; foreach ( $ this -> _expected_errors as $ key => $ error_array ) { if ( in_array ( $ error_code , $ error_array ) ) { unset ( $ this -> _expected_errors [ $ key ] [ array_search ( $ error_code , $ error_array ) ] ) ; $ deleted = true ; } // clean up empty arrays if ( 0 == count ( $ this -> _expected_errors [ $ key ] ) ) { unset ( $ this -> _expected_errors [ $ key ] ) ; } } return $ deleted ; }
docstring: This method checks unsets an error code if available
  
  @param mixed error code
  @return bool true if the error code was unset, false otherwise
  @access private
  @since PHP 4.3.0
docstring_tokens: This method checks unsets an error code if available