File::basename PHP 메소드

basename() 공개 정적인 메소드

Extract the trailing name component from a file path.
public static basename ( string $path ) : string
$path string
리턴 string
        public static function basename($path)
        {
            return \Illuminate\Filesystem\Filesystem::basename($path);
        }

Usage Example

예제 #1
0
 function replace($path)
 {
     $F = new File($path);
     $md5 = $F->md5();
     $this->path = appPATH . 'qg/file/' . $md5;
     $F->copy($this->path);
     $this->setVs(array('name' => $F->basename(), 'mime' => $F->mime(), 'text' => $F->getText(), 'md5' => $F->md5(), 'size' => $F->size()));
 }
All Usage Examples Of File::basename