My variable $FileExtension gives me the extension of a file. Now i want to check for some image extensions.
I tried this:
if($FileExtension == array('jpg', 'png', 'gif)) {
// do something
}
what is the correct way?
My variable $FileExtension gives me the extension of a file. Now i want to check for some image extensions.
I tried this:
if($FileExtension == array('jpg', 'png', 'gif)) {
// do something
}
what is the correct way?