PHP Quizzes & Trivia

Calling all savvy web developers out there! Are you confident with your PHP skills? If you want to find out how much you really know, then you came to the right place. We have a "script" of quizzes that will put your PHP expertise to the test. Are you ready for some PHP trivia? What did the acronym PHP originally stand for? Right! It stood for Personal Home Page.

Now, it stands for Hypertext Preprocessor, which is a recursive backronym. That's another trivia for you! What? You prefer more technical quizzes instead? No problem. We have that too! From Data types, Functions, and Objects; that's quite a loop of questions right there. Make Rasmus Lerdorf proud by showing how much you know about PHP. Ready? Break a leg! ...or finger, in your case. Good luck!
Top Trending

What does a PHP web developer do? PHP is a general-purpose programming language that was originally designed for web development. PHP is being used by more developers, especially in the world of freelancers. It is used mostly...

Questions: 15  |  Attempts: 3843   |  Last updated: Sep 28, 2020
  • Sample Question
    What will be printed?if ('2' == '02') { echo 'true';} else { echo 'false';}

This is your description.

Questions: 10  |  Attempts: 751   |  Last updated: Sep 26, 2013
  • Sample Question
    Which of the following is the incorrect way to declare a PHP variable?

In this quiz, we’ll be testing your knowledge on all the different functions of the widely used programming and web development language, PHP! What can you tell us about these functions and how they are used?...

Questions: 39  |  Attempts: 744   |  Last updated: Sep 28, 2020
  • Sample Question
    As of PHP 5.3.0, PHP implements a feature which can be used to reference the called class in a context of static inheritance. How is it called?

Republic Polytechnic Students: You need to set aside 60 mins to complete this quiz. There will be 30 questions in the quiz; the purpose is to test your ability to apply your problem solving and PHP programming skills.

Questions: 40  |  Attempts: 1937   |  Last updated: Jan 9, 2013
  • Sample Question
    Rearrange these steps in the correct order. 1. Connect to Database Server2. Close database connection3. Execute SQL query4. Retrieve HTML form data5. Build SQL statement

This quiz is a test of basic PCRE, aka, preg_match().  Difficult concepts in regexes are not covered.  Passing the test indicates that you have a basic understanding of regexes.

Questions: 6  |  Attempts: 1190   |  Last updated: Jan 7, 2013
  • Sample Question
    In the following statement, what does the "+" symbol mean?preg_match('/^[0-9]+$/', $data)

You May Also Like: PHP Flashcards

PHP Questions & Answers

What is the difference between Require and Include?
Require and include are terms used in PHP. Both are being used to carry out different functions in PHP and are written in this form include (), require (). However, it is essential to note that both are not functions but are referred to as constructs
What is the difference between AJAX and PHP?
AJAX is the short form of Asynchronous JavaScript XML. This refers to a group of methods which can be used for web development. AJAX is very important during web development because it houses different techniques that are interrelated and work togeth
Which of the following is not a valid PHP comparison operator?
$a <=> $bSpaceshipAn integer less than, equal to, or greater than zero when $a is respectively less than, equal to, or greater than $b. Available as of PHP 7.
More More PHP Questions