What are some best practices for formatting and displaying address data in PHP to ensure clarity and readability?

When displaying address data in PHP, it is important to format it in a clear and readable way to ensure that users can easily understand the information. One best practice is to break down the address into separate lines for each component (street, city, state, zip code) and use proper formatting such as commas or line breaks. Additionally, consider using a consistent format for all addresses to maintain uniformity.

// Example of formatting and displaying address data in PHP
$street = "123 Main Street";
$city = "Cityville";
$state = "State";
$zip = "12345";

// Display the address with proper formatting
echo $street . "<br>";
echo $city . ", " . $state . " " . $zip;