code: private function dequote($quoted)
      {
          if (preg_match('/^(\'([^\']*)\'|"([^"]*)")$/', $quoted, $matches)) {
              return isset($matches[3]) ? $matches[3] : $matches[2];
          }
  
          return $quoted;
      }
docs: Remove start and end quotes.
  
  @param string $quoted    A quoted string.
  
  @return string           Quotes are gone.