A fast way to get a file extension:
$ext = ltrim(strrchr($filename,'.'),'.');
![]() | ltrimDescriptionstring ltrim ( string str [, string charlist] )
This function returns a string with whitespace stripped from the beginning of str. Without the second parameter, ltrim() will strip these characters:
You can also specify the characters you want to strip, by means of the charlist parameter. Simply list all characters that you want to be stripped. With .. you can specify a range of characters. ![]()
Draugluin IZZAT bigfoot DIZZOT com
20-Jul-2003 01:15
A fast way to get a file extension: | ![]() |