//eg: from abc.txt got txt function getFileSuffix($fileName) { $gotInfo = pathinfo($fileName); // dirname, basename, extension $suffix = strtolower($gotInfo["extension"]); return $suffix; }
//eg: from abc.txt got txt function getFileSuffix($fileName) { $gotInfo = pathinfo($fileName); // dirname, basename, extension $suffix = strtolower($gotInfo["extension"]); return $suffix; }