PHP MCQ with Answers

  1. PHP is a ............
  2. The date_sunset() function returns the sunset time for a specified day and location.
  3. Which of the following symbol is used to add multiple line comments in PHP ?
  4. PHP is a case sensitive language.
  5. Which sign is used to access variable of variable in PHP?
  6. Which of following is not a Superglobals in PHP?
  7. Which function is used to get ASCII value of a character in PHP ?
  8. ______ is used to unset a variable in PHP ?
  9. How many error levels are available in PHP ?
  10. In which version of PHP E_STRICT Error level is introduced ?
  11. Which function in PHP is used to get the length of string variable?
  12. Which of the below symbols is a newline character?
  13. Who is the father of PHP?
  14. Type Hinting was introduced in which version of PHP?
PHP MCQ

PHP is an abbreviation of PHP: HyperText Preprocessor. It is a server-side scripting language, that is used to develop dynamic web pages. It is developed by Rasmus Lerdorf in 1995. It is the most popular programming language in the world because it is easy to learn.

Finally, Take the Advanced PHP MCQ Test to brush up your PHP programming skills.

  • Open Source Laguage
  • Widely Used Language
  • Server side scripting language
  • All of the above
View Answer
  • True
  • False
View Answer
  • //
  • /* */
  • {{ }}
  • {/ \}
View Answer
  • $$
  • $
  • #@
  • $|
Download Free : PHP MCQ PDF
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
  • Personal Home Page
  • PHP Hypertext Preprocessor
  • Pro Hypertext Preprocessor
  • None of the above
View Answer
  • .xml
  • .html
  • .php
  • .py
View Answer
  • Notepad ++
  • VS Code Editor
  • Sublime Text
  • All of the above
View Answer
  • function {function body}
  • functionName(parameters) {function body}
  • function functionName(parameters) {function body}
  • None of the above
View Answer
  • PHP 3
  • PHP 5
  • PHP 7
  • PHP 8
View Answer
  • file()
  • fold()
  • glob()
  • None of the above
  • Yes
  • No
View Answer
  • zip()
  • compress()
  • zip_compress()
  • gzcompress()
View Answer
  • Hello World
  • Hello World!
  • Hello World! Welcome to the Online Interview Questions
  • None of the above
View Answer
  • $_SESSION[]
  • isset() function
  • session_start() function
  • session_destroy() function
View Answer
  • 15
  • 16
  • 17
  • 14
View Answer
  • Source PHP List
  • Standard PHP List
  • Standard PHP Library
  • None of the Above
View Answer