File::isImage()
\nn\t3::File()->isImage($filename = NULL);
Gibt an, ob die Datei in ein Bild ist
\nn\t3::File()->isImage('bild.jpg'); => gibt true zurück
\nn\t3::File()->isImage('text.ppt'); => gibt false zurück
Copied!
| @return boolean
Source Code
public function isImage($filename = null)
{
if (!$filename) return false;
$suffix = $this->suffix($filename);
$arr = array_merge(self::$TYPES['image']);
return in_array($suffix, $arr);
}
Copied!