In the provided PHP code example, what are the best practices for improving readability and maintainability?

The provided PHP code example lacks proper indentation and comments, making it difficult to read and maintain. To improve readability and maintainability, it is recommended to add comments to describe the purpose of each section of code and to properly indent the code for better structure.

<?php

// Calculate the sum of two numbers
function calculateSum($num1, $num2) {
    $sum = $num1 + $num2;
    return $sum;
}

// Get user input and calculate the sum
$input1 = 5;
$input2 = 10;
$result = calculateSum($input1, $input2);

echo "The sum of $input1 and $input2 is: $result";

?>