I use this to find extentions like “file.txt” would show “.txt”, but cant find out how to get the “file” by itself.
function GetFileExtention($filename) {
$ext = strstr($filename,".");
return $ext;
}
I’ve been searching for the last half any hour how to find out of “file.txt” the string “file”.
//edit, Basically I need everything before the “.”.
Thanks.