How to get PHP to manipulate HTML code (copy/paste) before sending to the browser.
I want to use PHP to get html
code form inside h1
and paste it in h2
. On server. Before page is send over to the browser.
e.g ;
<h1> Some HTML CODE </h1>
<h2> <!-- EMPTY --> </h2>
<?php
// $var1 = HTML CODE from inside of h1
// Paste in $var1 inside h2
// Display The Page
?>