2011-06-16 23:51:28 -05:00
|
|
|
<?php namespace System;
|
|
|
|
|
|
|
|
|
|
class File {
|
2011-06-17 00:17:51 -05:00
|
|
|
|
2011-06-16 23:51:28 -05:00
|
|
|
/**
|
|
|
|
|
* Get a file's extension.
|
|
|
|
|
*
|
2011-06-17 00:17:51 -05:00
|
|
|
* @param string $path
|
2011-06-16 23:51:28 -05:00
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
public static function extension($path)
|
|
|
|
|
{
|
|
|
|
|
return pathinfo($path, PATHINFO_EXTENSION);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|