PHP MCQ

  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

Practice Advanced PHP MCQ to Test Your Knowledge

PHP is a dynamic type, widely-used server-side scripting language especially, designed for web development. It was originally developed by Rasmus Lerdorf & first appeared on 8 June 1995. The word PHP is the acronym for PHP: Hypertext Preprocessor & it is previously known as Personal Home Page.  PHP is a highly extensible and dynamic programming language, allowing web developers to build whatever functionality they need by combining the features provided by other languages combined with those included in the core programming language.

Finally, practice here the Advanced PHP MCQ Questions, that check your basic knowledge of PHP Programming. This PHP MCQ Test contains 35+ PHP Multiple Choice Questions. You have to select the right answer to check your final preparation for your exam/interviews. apart from this, you can also download here the PHP MCQ PDF, completely free.

  • 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