original_string: public function remove($key)
       {
           $keys = explode('.', $key);
           $cKeys = count($keys);
           $config = &$this->_arr;
  
           for ($i = 0; $i < $cKeys; ++$i) {
               if ($i === ($cKeys - 1)) {
                   unset($config[$keys[$i]]);
               } elseif (is_array($config)) {
                   if (array_key_exists($keys[$i], $config)) {
                       $config = &$config[$keys[$i]];
                   } else {
                       return;
                   }
               }
           }
       }
code: public function remove($key)
       {
           $keys = explode('.', $key);
           $cKeys = count($keys);
           $config = &$this->_arr;
  
           for ($i = 0; $i < $cKeys; ++$i) {
               if ($i === ($cKeys - 1)) {
                   unset($config[$keys[$i]]);
               } elseif (is_array($config)) {
                   if (array_key_exists($keys[$i], $config)) {
                       $config = &$config[$keys[$i]];
                   } else {
                       return;
                   }
               }
           }
       }
code_tokens: public function remove ( $ key ) { $ keys = explode ( '.' , $ key ) ; $ cKeys = count ( $ keys ) ; $ config = & $ this -> _arr ; for ( $ i = 0 ; $ i < $ cKeys ; ++ $ i ) { if ( $ i === ( $ cKeys - 1 ) ) { unset ( $ config [ $ keys [ $ i ] ] ) ; } elseif ( is_array ( $ config ) ) { if ( array_key_exists ( $ keys [ $ i ] , $ config ) ) { $ config = & $ config [ $ keys [ $ i ] ] ; } else { return ; } } } }
docstring: Removes config value based on key.
  
  To unset a sub-array configuration, you can use a dot separated key.
  For example, given this configuration array :
  
  array(
  'basePath' => 'somepath',
  'params' => array(
  'somekey' => 'value of key'
  )
  );
  
  To unset the value of 'somekey', you can call the method like this :
  
  $config->unset('params.somekey');
  
  @param string $key Dot-separated string of key
docstring_tokens: Removes config value based on key .