What are some best practices for indenting PHP code to avoid parse errors?

When indenting PHP code, it is essential to maintain consistency in the number of spaces or tabs used for each level of indentation. Mixing spaces and tabs can lead to parse errors in PHP code. To avoid this issue, it is recommended to use either spaces or tabs consistently throughout the codebase.

// Incorrect indentation using a mix of spaces and tabs
function exampleFunction() {
    if ($condition) {
    \t\techo "Condition is true";
    }
}

// Correct indentation using only spaces
function exampleFunction() {
    if ($condition) {
        echo "Condition is true";
    }
}