You could do it this way.
$file = 'my-file.ppt';
$parts = pathinfo($file);
$extensions = array("ppt", "pptx", "pptm", "ppm");
if (in_array($parts['extension'], $extensions)) {
echo "we have {$parts['extension']}";
}
else {
echo "no matches";
}