What is the correct syntax for an OR condition in an if statement in PHP?

When using an OR condition in an if statement in PHP, you need to use the double pipe operator (||) to represent the logical OR. This operator allows you to check if either of the conditions is true in order for the overall condition to be true. Make sure to use the correct syntax to properly implement an OR condition in your if statement.

// Syntax for an OR condition in an if statement
if ($condition1 || $condition2) {
    // code to execute if either $condition1 or $condition2 is true
}