Are there any best practices for separating echo statements and variable assignments in PHP scripts?

It is considered a best practice to separate echo statements from variable assignments in PHP scripts for better readability and maintainability. This can be achieved by assigning values to variables first and then echoing them out separately.

// Assign values to variables
$name = "John";
$age = 30;

// Echo out the variables separately
echo "Name: " . $name . "<br>";
echo "Age: " . $age;