What are some best practices for handling whitespace in PHP code?

When handling whitespace in PHP code, it is best practice to maintain consistency in formatting to improve code readability and maintainability. This includes using spaces instead of tabs for indentation, avoiding trailing whitespace at the end of lines, and using a consistent line break style throughout the codebase.

// Good practice: using spaces for indentation and avoiding trailing whitespace
function exampleFunction() {
    $variable = 1;
    
    if ($variable == 1) {
        echo 'This is an example';
    }
}