original_string: public function get($key, $default = null)
      {
          $resource = $this->getAll();
  
          $keys = explode('.', $key);
          foreach ($keys as $key) {
              if (!isset($resource[$key])) {
                  $resource = $default;
                  break;
              }
              $resource = &$resource[$key];
          }
  
          return $resource;
      }
code: public function get($key, $default = null)
      {
          $resource = $this->getAll();
  
          $keys = explode('.', $key);
          foreach ($keys as $key) {
              if (!isset($resource[$key])) {
                  $resource = $default;
                  break;
              }
              $resource = &$resource[$key];
          }
  
          return $resource;
      }
code_tokens: public function get ( $ key , $ default = null ) { $ resource = $ this -> getAll ( ) ; $ keys = explode ( '.' , $ key ) ; foreach ( $ keys as $ key ) { if ( ! isset ( $ resource [ $ key ] ) ) { $ resource = $ default ; break ; } $ resource = & $ resource [ $ key ] ; } return $ resource ; }
docstring: Return specific value by key if resource set. If not found, return default.
  
  $getSet->get("one.two.three", "value") would return $resource["one"]["two"]["three"] or "value";
  
  @param string     $key
  @param mixed|null $default
  
  @return mixed|null
docstring_tokens: Return specific value by key if resource set . If not found return default .