What resources or documentation can help clarify the behavior of logical operators in PHP if statements?

When working with logical operators in PHP if statements, it's important to understand how they work in order to write effective conditional statements. The PHP documentation provides detailed explanations and examples of how logical operators such as && (and), || (or), and ! (not) behave in if statements. By referring to the PHP documentation on logical operators, you can clarify any confusion and ensure that your if statements evaluate conditions correctly.

// Example code snippet demonstrating the use of logical operators in PHP if statements
$age = 25;
$isStudent = true;

if ($age >= 18 && $isStudent) {
    echo "You are an adult student.";
} elseif ($age >= 18 && !$isStudent) {
    echo "You are an adult.";
} else {
    echo "You are not an adult.";
}