I use a standard document for all my clients, however want to change their business name and address in several places, so to save time copy and pasting, I want to find a way to reuse words and phrases:
One approach to reusing code that I have found is:
<html>
<body>
<?php
$color = "red";
$second = "blue";
?>
<p>Roses are <?=$color?></p>
<?=$second?>
<p><b>Note:</b> The shortcut syntax only works with the short_open_tag configuration setting enabled.</p>
</body>
</html>
However, is this best practice? or is there a more standard way to use PHP than this?
The source I got this from said: Shortcut syntax (will only work with the short_open_tag configuration setting enabled)