| 1 | What does declaring strict_types=1 at the top of a PHP file actually change about how type declarations are enforced? PHP › Type Declarations & Strict Types | PHP | Type Declarations & Strict Types | Beginner |
| 2 | What are type declarations in PHP, and how do they let you specify what kind of value a function parameter or return value should be? PHP › Type Declarations & Strict Types | PHP | Type Declarations & Strict Types | Beginner |
| 3 | What are nullable types and union types in PHP, and how do they let you express that a value could be one of several different possible types? PHP › Type Declarations & Strict Types | PHP | Type Declarations & Strict Types | Intermediate |
| 4 | How do type declarations improve the effectiveness of static analysis tools and IDE autocompletion when working within a codebase? PHP › Type Declarations & Strict Types | PHP | Type Declarations & Strict Types | Intermediate |
| 5 | How does PHP's type variance, specifically covariance and contravariance, affect how return types and parameter types can be safely changed when overriding a method in a child class? PHP › Type Declarations & Strict Types | PHP | Type Declarations & Strict Types | Advanced |
| 6 | What are PHP 8's enums, and how do they provide a more type safe alternative to using plain class constants for representing a fixed set of related values? PHP › Type Declarations & Strict Types | PHP | Type Declarations & Strict Types | Advanced |
| 7 | What are readonly properties in PHP, and how do they help you create objects whose internal state cannot be accidentally changed after they are first constructed? PHP › Type Declarations & Strict Types | PHP | Type Declarations & Strict Types | Intermediate |
| 8 | How does PHP's type coercion behave differently in strict types mode compared to the default coercive mode, and what are the implications for function argument and return type validation? PHP › Basics & Types | PHP | Basics & Types | Advanced |
| 9 | What are the basic data types available in PHP? PHP › Basics & Types | PHP | Basics & Types | Beginner |
| 10 | What is type juggling in PHP, and how does it affect comparisons between values of different types? PHP › Basics & Types | PHP | Basics & Types | Intermediate |
| 11 | How do PHP's integer and float types handle precision limitations, and what issues can arise when performing arithmetic with floating point numbers? PHP › Basics & Types | PHP | Basics & Types | Advanced |
| 12 | How do function type declarations and return type declarations improve code reliability, and how does PHP handle nullable and union types in function signatures? PHP › Functions & Scope | PHP | Functions & Scope | Advanced |
| 13 | How do union types and intersection types in PHP 8 provide more expressive and precise type declarations than were previously possible? PHP › PHP 8 Features (Attributes, Enums, Match, Nullsafe Operator) | PHP | PHP 8 Features (Attributes, Enums, Match, Nullsafe Operator) | Advanced |
| 14 | How do type declarations and PHPDoc comments help a static analysis tool understand your code more accurately and catch more potential issues? PHP › Static Analysis (PHPStan & Psalm) | PHP | Static Analysis (PHPStan & Psalm) | Intermediate |
| 15 | How do PHP's string comparison functions and operators handle edge cases involving numeric looking strings, and why is strict, type aware comparison important when working with strings that could be misinterpreted as numbers? PHP › Strings & String Functions | PHP | Strings & String Functions | Advanced |
| 16 | What are analysis levels in PHPStan, and why would a project typically start at a lower level before gradually increasing strictness? PHP › Static Analysis (PHPStan & Psalm) | PHP | Static Analysis (PHPStan & Psalm) | Beginner |
| 17 | How do route parameters and route constraints let you capture dynamic segments of a URL while also restricting what values are actually considered a valid match? PHP › Routing & Middleware | PHP | Routing & Middleware | Intermediate |
| 18 | How do enums, introduced in PHP 8.1, provide a more type safe alternative to using class constants for representing a fixed set of related values? PHP › Constants & Superglobals | PHP | Constants & Superglobals | Advanced |
| 19 | How do you define and call a basic function in PHP, and what are function parameters and return values? PHP › Functions & Scope | PHP | Functions & Scope | Beginner |
| 20 | What is static analysis, and how do tools like PHPStan and Psalm help catch bugs in PHP code before it is even run? PHP › Static Analysis (PHPStan & Psalm) | PHP | Static Analysis (PHPStan & Psalm) | Beginner |
| 21 | What are the different ways to create and combine strings in PHP, and how does string concatenation using the dot operator work? PHP › Strings & String Functions | PHP | Strings & String Functions | Beginner |
| 22 | What are assertions in PHPUnit, and how do commonly used assertions like assertEquals and assertTrue let you verify expected behavior within a test? PHP › Unit Testing with PHPUnit | PHP | Unit Testing with PHPUnit | Beginner |
| 23 | How does the readonly property modifier introduced in PHP 8.1 help enforce immutability for specific class properties? PHP › OOP | PHP | OOP | Intermediate |
| 24 | How do constructor property promotion, introduced in PHP 8, reduce boilerplate code when defining a class with several properties initialized directly through its constructor? PHP › PHP 8 Features (Attributes, Enums, Match, Nullsafe Operator) | PHP | PHP 8 Features (Attributes, Enums, Match, Nullsafe Operator) | Intermediate |
| 25 | How do commonly used string functions like strlen, substr, str_replace, and trim help with everyday text processing tasks in PHP? PHP › Strings & String Functions | PHP | Strings & String Functions | Intermediate |
| 26 | How does the sprintf function let you build formatted strings with precise control over things like decimal places, padding, and alignment? PHP › Strings & String Functions | PHP | Strings & String Functions | Intermediate |
| 27 | How do data providers in PHPUnit let you run the exact same test logic repeatedly against many different sets of input data, without duplicating the test method itself? PHP › Unit Testing with PHPUnit | PHP | Unit Testing with PHPUnit | Advanced |