File::type PHP 메소드

type() 공개 정적인 메소드

Get the file type of a given file.
public static type ( string $path ) : string
$path string
리턴 string
        public static function type($path)
        {
            return \Illuminate\Filesystem\Filesystem::type($path);
        }

Usage Example

예제 #1
0
파일: Copy.php 프로젝트: railsphp/framework
 public static function isSameType(File $origin, $filename)
 {
     $extensions = explode('.', pathinfo($filename, PATHINFO_BASENAME));
     array_shift($extensions);
     return $origin->type() == array_shift($extensions);
 }
All Usage Examples Of File::type