PHP a line of code to get the file suffix name of the method to combine a lot of functions, we are a bit like the function of ASP, let's take a look at the next.
|The code is as follows|
$filename = ' D:/wamp/www/sparkphp/rar ';
The STRRCHR () function looks for the last occurrence of the string in another string and returns all characters from that position to the end of the string;
The substr () function is a part of the return string, and 1 represents the first read from the bottom of the string. Until the end;
The trim () function is to remove the space before and after the string;
The Strtolower () function converts a string to lowercase.
Add other methods
|code as follows|