I have the file and extension stored in a database and would like to know if there's something out there like substr but only backwards or even strchr but backwards? I want to get the extension of a file and right now i'm doing this
If (strchr ( $Row["File"], "." ) == ".pdf")
but if someone uploads a file with .'s in it then it doesn't work.