PHP Study Guide 2026
Everything you need to pass the PHP exam in one place: the exam format, every topic to study, real practice questions with explanations, flashcards, and full-length practice tests. Free, no sign-up needed.
📋 PHP Exam Format at a Glance
📚 PHP Topics to Study (57)
✍️ Sample PHP Questions & Answers
1. What visibility modifier restricts a property or method to the class itself only?
private members are accessible only within the class that defines them, not from subclasses or outside code.
2. What distinguishes a peer-reviewed study in PHP Programming Language literature?
This is fundamental to PHP Programming Language practice. Independent experts in the field evaluated the methodology and conclusions before publication represents the professional standard for research in the PHP certification framework.
3. What is the risk associated with exposing a PHP application's phpinfo() output to the public?
phpinfo() reveals server paths, PHP version, loaded modules, and configuration values that help attackers craft targeted attack vectors.
4. Which keyword enables one PHP class to inherit from another?
The extends keyword creates an inheritance relationship, giving the child class access to the parent's public and protected members.
5. Which PHP function hashes a password using a strong one-way algorithm?
password_hash() uses bcrypt by default and is the recommended way to securely hash passwords in PHP.
6. What PHP technique prevents XML External Entity (XXE) injection, which is flagged by compliance security scans?
libxml_disable_entity_loader(true) prevents the XML parser from loading external entities, which is the primary defense against XXE injection attacks.