Asf_Util::fileExt

Get the suffix name of the file name, And convert the extension to lowercase.


Description

public static string Asf_Util::fileExt(string $filename)

Parameters

filename

The full file name, eg xxxx.doc, xxx.xls, xxx.tar.gz

Return Values

Returns the suffix name, or FALSE on failure

Examples

Example #1

<?php
// doc
var_dump(Asf_Util::fileExt("test.Doc"));