Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php check if item in array

$allowedFileType = ['application/vnd.ms-excel','text/xls','text/xlsx','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'];
  
if(in_array($_FILES["file"]["type"],$allowedFileType))
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #check #item #array
ADD COMMENT
Topic
Name
7+6 =