Quizzes

PHP quizzes

Choose a quiz and test your understanding of a focused concept.

How PHP foreach Really Works with Arrays Quiz

Test your understanding of PHP foreach internals, references, pointer functions, and array mutation with practical quiz questions.

How to Check if a String Contains a Word in PHP Quiz

Test your understanding of checking whether a PHP string contains text using strpos(), str_contains(), and common pitfalls.

How to Delete an Element from an Array in PHP Quiz

Test your understanding of removing PHP array elements with unset(), null, array_filter(), array_values(), and key checks.

How to Display PHP Errors in the Browser Quiz

Test your understanding of PHP browser error display, parse errors, php.ini settings, startup errors, and safe debugging practices.

How to Parse and Process HTML/XML in PHP Quiz

Test your knowledge of parsing HTML and XML in PHP with DOMDocument, DOMXPath, and SimpleXML using practical examples.

How to Prevent SQL Injection in PHP Quiz

Test your understanding of preventing SQL injection in PHP using PDO, MySQLi, prepared statements, validation, and common pitfalls.

PHP Quiz: Get a YouTube Video Thumbnail from a URL Using the YouTube API

Test your PHP knowledge for extracting YouTube video IDs and getting thumbnails via direct URLs or the YouTube Data API.

PHP Syntax Symbols Quiz: Operators, Tokens, and Practical Meaning

Test your understanding of PHP syntax symbols like =, ===, ->, ::, =>, ??, ?:, &&, and . with practical beginner-friendly quiz questions.

PHP self vs $this Quiz: Difference, Usage, and Common Mistakes

Test your understanding of PHP `self` vs `$this`, including static vs instance access, syntax, common mistakes, and real usage.

Why You Should Not Use mysql_* Functions in PHP Quiz

Test your understanding of why PHP mysql_* functions are deprecated, removed, insecure, and replaced by MySQLi or PDO.