1. Home
  2. Computer Science MCQs
  3. PHP
  4. To check whether a file was uploaded, you look in the ___…

Added 19 Jan 2024

To check whether a file was uploaded, you look in the ___ superglobal array.

  1. $_FILES Correct answer
  2. $_DOCS
  3. $_DOCUMENTS
  4. $_FOLDERS

Correct answer

A. $_FILES

12 views

MCQSEXAM

Explanation

To check whether a file was uploaded in PHP, you would look in the $_FILES superglobal array. The $_FILES array contains information about file uploads, such as the file name, file type, temporary file location, and any error information associated with the upload.

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More PHP MCQs

Practise all PHP MCQs

Similar MCQs