public static function is_png($file) { $file = strtolower($file); if (strpos($file, '.png') > 0) { return true; } return false; }