How can you structure PHP code to handle multiple conditional statements within a single control structure like if or while?

When dealing with multiple conditional statements within a single control structure like if or while in PHP, you can use logical operators such as && (and), || (or), and ! (not) to combine conditions. This allows you to check multiple conditions within a single control structure without nesting multiple if statements. Example:

// Check if both conditions are true
if ($condition1 && $condition2) {
    // Code to execute if both conditions are true
}

// Check if either condition is true
if ($condition1 || $condition2) {
    // Code to execute if either condition is true
}

// Check if a condition is not true
if (!$condition) {
    // Code to execute if condition is not true
}