im trying to extract every file extension of an uploaded file.
For example:
example.doc -> .doc
another.example.jpeg -> .jpeg
even.anaother.example.pdf -> .pdf
i know this could be resolved by using regex, but regex are a closed book to me. So i need your help 🙁 please
thanks in advance!
Alternatively, don’t do regex but use a built-in:
pathinfo()