What are the best practices for writing clean and readable PHP code, especially when it comes to conditional statements and control structures?

When writing conditional statements and control structures in PHP, it is important to follow best practices to ensure clean and readable code. One way to achieve this is by using proper indentation, clear and descriptive variable names, and commenting where necessary to explain the logic behind the conditions.

// Example of clean and readable PHP code with conditional statements and control structures

if ($condition1 && $condition2) {
    // Perform action if both conditions are true
} elseif ($condition1 || $condition3) {
    // Perform action if either condition1 is true or condition3 is true
} else {
    // Perform default action if none of the conditions are met
}