How can PHP functions be integrated into HTML code more effectively?

When integrating PHP functions into HTML code, it is important to use the correct syntax to ensure proper execution. One effective way to do this is by encapsulating PHP code within the <?php ?> tags. This helps to clearly differentiate between PHP and HTML code, making the integration process smoother.

&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;PHP Function Integration&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;h1&gt;Welcome, &lt;?php echo &quot;John&quot;; ?&gt;&lt;/h1&gt;
    &lt;p&gt;Your account balance is: &lt;?php echo &quot;$100&quot;; ?&gt;&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;