[Solved] How to compare two different extension files in php? [closed]


Its basic.

<?php    
$ext= explode(".",$filename); // explode filename by "."
$extension= $ext[1];// get extension. 
if($extension=="pdf")
{
 // do something
}
elseif($extension=="jpg" ||$extension=="png"..... ) 
{
// do something
}
?>

0

solved How to compare two different extension files in php? [closed]