How can you handle multiple conditions in an if statement in PHP?

When handling multiple conditions in an if statement in PHP, you can use logical operators such as && (AND), || (OR), and ! (NOT) to combine conditions. This allows you to check for multiple conditions in a single if statement and execute the corresponding code block if all conditions are met.

// Example of handling multiple conditions in an if statement
$age = 25;
$gender = 'male';

if ($age >= 18 && $gender == 'male') {
    echo 'You are a male adult.';
} else {
    echo 'You are not a male adult.';
}