Take the function of the file suffix

xiaoxiao2021-03-06  80

/ ************************************************** *******************

Function Name: getPostfix

Function Description: Take a file suffix

Access table: None

Modified table: None

Enter parameters: $ filename ----------------- File name

Output parameters: $ pos ---------------- suffix

Function returns: STR

Other instructions: 2004-9-17

*********************************************************** ******************* /

Function GetPostfix ($ filename)

{

$ Postfix = Substr (Strrchr (Trorm (TRTOLOWER ($ filename), "."), 1);

Return $ postfix;

}

转载请注明原文地址:https://www.9cbs.com/read-100182.html

New Post(0)