PHP MCQ with Answers

PHP is a commonly used server-side scripting language for web applications.

The following are some significant characteristics of PHP languages:

  • The latest PHP version Supports object-oriented programming concepts
  • interpreted language
  • Scripts written in PHP are faster than other scripting languages
  • Simple and easy to use

There are multiple popular Frameworks based on PHP

  • Symfony
  • Laravel
  • Phalcon
  • CodeIgniter

PHP is used in a number of major content management systems such as

  • WordPress
  • Drupal
  • Joomla
  • Magento

We keep adding handpicked multiple-choice questions for beginners and experienced programmers. Practice a list of PHP MCQ with Answers help you prepare for interviews and technical exams and enhance your skills.

1. Content-Disposition: inline used for?

Options are:

2. Content-Type Directives are?

Options are:

3.

Which code might NOT return yesterday's date?

Options are:

4.

Which date code will yield a textual month in abbreviated form? ( three letters)?

Options are:

5. What will be the outcome of following mysqli_query code?
$mysqli = new mysqli($servername,$username,$password,$db);

$resultSet = mysqli_query($mysqli, "SELECT name FROM tbl_employee where id=1");

echo $resultSet;

Options are:

Connect With Us

We hope you find this Post Insightful.

Please Follow Us and Stay tuned with upcoming blog posts and updates.

You May Like to Read

PHP Articles for Beginners & Advanced Learners