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?
  13. Which of the below symbols is a newline character?
  14. Who is the father of PHP?
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.

  • Tightly typed language
  • Loosely typed language
  • Server typed language
  • Client typed language
View Answer
  • + (plus)
  • . (dot)
  • ^
  • -
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
  • delete()
  • unset()
  • 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
  • Drek Kolkevi
  • Rasmus Lerdorf
  • Willam Makepiece
  • List Barely
View Answer
  • Inbuilt Function
  • Default Function
  • Magic Function
  • User Defined Function
View Answer
  • func_get_args()
  • func_get_argv()
  • get_argv()
  • get_argc()
View Answer
  • This, was, a, bad, idea
  • This was a bad idea
  • Thiswasabadidea
  • Error
View Answer