In the PHP code snippet shared, what are some best practices that could be implemented to enhance readability and maintainability?

The PHP code snippet could benefit from implementing proper indentation and consistent spacing to enhance readability and maintainability. This can be achieved by following a coding standard, such as PSR-12, which provides guidelines for formatting PHP code. Additionally, using meaningful variable names and comments can help improve code clarity and make it easier for others to understand and maintain the code.

<?php

// Example of improved readability and maintainability

function calculateTotal($price, $quantity) {
    $total = $price * $quantity;
    
    return $total;
}

$price = 10;
$quantity = 5;

$total = calculateTotal($price, $quantity);

echo "Total price: $" . $total;

?>