How can the use of proper code indentation and structure improve the readability and maintainability of PHP scripts, as demonstrated in the provided code snippet?

Proper code indentation and structure improve the readability and maintainability of PHP scripts by making the code easier to understand and navigate. It helps to visually separate different parts of the code, such as functions, loops, and conditionals, making it easier to follow the logic flow. Additionally, consistent indentation and structure make it simpler to identify errors and debug the code.

<?php

// Improperly formatted code snippet
$number=10;
if($number>5){
echo "Number is greater than 5.";
}else{
echo "Number is less than or equal to 5.";
}

// Properly formatted code snippet
$number = 10;
if ($number > 5) {
    echo "Number is greater than 5.";
} else {
    echo "Number is less than or equal to 5.";
}

?>