What are the best practices for incorporating functions into echo statements in PHP?

When incorporating functions into echo statements in PHP, it is best practice to enclose the function call within parentheses to ensure that the function is executed before its return value is concatenated with the rest of the string being echoed. This helps to avoid unexpected behavior or errors that may arise from incorrect order of operations.

// Example of incorporating a function into an echo statement
echo "The result is: " . myFunction(); // Correct way

// Incorrect way: echo "The result is: " . myFunction(); // Incorrect way