What are the drawbacks of using poorly formatted PHP code and how can it impact code readability and maintenance?

Poorly formatted PHP code can make it difficult for other developers to understand and maintain the code. It can lead to confusion, errors, and inefficiencies in the codebase. To improve code readability and maintenance, developers should follow consistent coding standards, use proper indentation, and comment their code effectively.

<?php

// Example of well-formatted PHP code
function calculateSum($num1, $num2) {
    $sum = $num1 + $num2;
    return $sum;
}

$result = calculateSum(5, 10);
echo "The sum is: " . $result;

?>