original_string: public function get_extension()
    {
      if ( $this->name ){
        if ( !isset($this->ext) ){
          if ( strpos($this->name, '.') !== false ){
            $p = str::file_ext($this->name, 1);
            $this->ext = $p[1];
            $this->title = $p[0];
          }
          else{
            $this->ext = '';
            $this->title = substr($this->name,-1) === '/' ? substr($this->name,0,-1) : $this->name;
          }
        }
        return $this->ext;
      }
      return false;
    }
code: public function get_extension()
    {
      if ( $this->name ){
        if ( !isset($this->ext) ){
          if ( strpos($this->name, '.') !== false ){
            $p = str::file_ext($this->name, 1);
            $this->ext = $p[1];
            $this->title = $p[0];
          }
          else{
            $this->ext = '';
            $this->title = substr($this->name,-1) === '/' ? substr($this->name,0,-1) : $this->name;
          }
        }
        return $this->ext;
      }
      return false;
    }
code_tokens: public function get_extension ( ) { if ( $ this -> name ) { if ( ! isset ( $ this -> ext ) ) { if ( strpos ( $ this -> name , '.' ) !== false ) { $ p = str :: file_ext ( $ this -> name , 1 ) ; $ this -> ext = $ p [ 1 ] ; $ this -> title = $ p [ 0 ] ; } else { $ this -> ext = '' ; $ this -> title = substr ( $ this -> name , - 1 ) === '/' ? substr ( $ this -> name , 0 , - 1 ) : $ this -> name ; } } return $ this -> ext ; } return false ; }
docstring: Return the extension of the file.
  
  ```php
  $file = new file('C:/Test/file.txt');
  bbn\x::dump($file->get_extension());
  //(string) 'txt'
  ```
  
  @return string|false
docstring_tokens: Return the extension of the file .