How can improper indentation affect the readability and functionality of PHP code?

Improper indentation in PHP code can make it difficult to read and understand, leading to confusion for developers trying to navigate the codebase. It can also impact the functionality of the code, as incorrect indentation can result in logical errors or unintended behavior. To improve readability and maintain code quality, it's essential to follow consistent and proper indentation practices.

<?php

// Incorrect indentation
if ($condition) {
echo "Condition is true!";
}

// Correct indentation
if ($condition) {
    echo "Condition is true!";
}

?>