What is the correct syntax for using logical operators like && in PHP conditional statements?

When using logical operators like && in PHP conditional statements, it is important to remember to use the correct syntax to combine multiple conditions. The correct syntax for the "and" operator in PHP is &&, not &. Using the correct syntax ensures that the conditional statement evaluates the conditions correctly and produces the desired outcome.

// Example of using logical operators in PHP conditional statements
$age = 25;
$gender = 'male';

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