A PHP Quiz for beginners to check basic PHP knowledge.

PHP Basic Quiz

This is a PHP basic quiz of 20 questions. This is the best PHP quiz for beginners those are learning PHP and want to check their level of PHP knowledge achieved.

Please provide your email address to send your quiz results.

Please enter your email:

1. We can include(“header.php”) file two times in a file named index.php?

 
 

2. Which of the following is not valid operator?

 
 
 
 

3. PHP is a server side scripting language?

 
 

4. How to define a constant in PHP?

 
 
 
 

5. Which of the following are the correct way to write comments in PHP?

 
 
 
 

6. Which function is used to Strip whitespace (or other characters) from the beginning and end of a string?

 
 
 
 

7. Which method is used to print string on document?

 
 
 
 

8. PHP is an open source platform?

 
 

9. We can view the PHP code in browser?

 
 

10. We can run PHP directly in the browser?

 
 

11. Include and Include_once are not similar?

 
 

12. Which method is used to link files?

 
 
 
 

13. How to declare variable in PHP?

 
 
 
 

14. What is the difference between echo and print?

 
 
 
 

15. How do we create array in PHP?

 
 
 
 

16. PHP can only be written with HTML?

 
 

17. What is fullform of PHP?

 
 
 
 

18. Get and Post method are same in php?

 
 

19. We can write PHP within the html code?

 
 

20. What will be the output of below code?

$var = ‘false’;

if ($var) {

echo ‘True’;

} else {

echo ‘False’;

}

 
 

CHECKOUT ALL QUIZZES

Click to check our all the quizzes on various topics.

All Quizzes

Visit Quiz Category

Go back to your quiz category to explore more quizzes

Quiz Category

Quizzes Designed by Experts

These quizzes are designed by highly experienced professionals.

Get Results on Your Email

Receive your quiz results on your email instantly.

Kickstart your career and get certified with our PHP Course

Similar Quizzes

Checkout more similar quizzes to test your knowledge with ADMEC Multimedia Institute. You can checkout our courses too if in case interested in joining any.

java courses rohini delhi

Core Java Quiz

Call Now