PHP MCQ Quiz & Online Test

  1. PHP is a ________________________
  2. _______________ is cocatenation operator in PHP ?
  3. What does date_sunset() function returns
  4. Which of following is used to add multiple line comments in PHP ?
  5. PHP is a case sensitive
  6. Which sign is used to access variable of variable in PHP?
  7. Which of following is not a Superglobals in PHP?
  8. Which function is used to get ASCII value of a character in PHP ?
  9. ______ is used to unset a variable in PHP ?
  10. How many error levels are available in PHP ?
  11. In which version of PHP E_STRICT Error level is introduced ?
  12. Which function in PHP is used to get the length of string variable?
PHP MCQ

Take PHP Quiz To test your Knowledge 

Below are few PHP MCQ test that checks your basic knowledge of PHP Framework. This PHP Test contains around 12 questions of multiple choice type with 4 options. You have to select the right answer to a question. You can see the correct answer by clicking view answer link.

Also, Read Best PHP interview questions.

  • Loosely typed language
  • Tightly typed language
  • Server typed language
  • Client typed language
View Answer
  • . (dot)
  • + (plus)
  • ^
  • -
View Answer
  • Returns the date of sunset for a given day / location
  • Returns the time of sunset for a given day / location
View Answer
  • //
  • /* */
  • {{ }}
  • {/ \}
View Answer
  • $
  • $$
  • #@
  • $|
View Answer
  • $_SERVER
  • $_ENV
  • $_FILES
  • $_PUT
View Answer
  • asc()
  • chr( )
  • ascii()
  • val( )
View Answer
  • unset()
  • delete()
  • unlink()
  • delete();
View Answer
  • 20
  • 4
  • 19
  • 16
View Answer
  • PHP 4
  • PHP 5
  • PHP 5.2
  • PHP 7
View Answer
  • count()
  • strcount
  • strlen
  • len
View Answer