I was trying to make this code as below.
PHP code I wrote:
$i = 1;
<div class="sampleNumberIndex">
<p>
<h2> <?php echo $i; ?></h2>
</p>
</div>
Made code that I expected
<div class="sampleNumberIndex">
<p>
<h2> 1 </h2>
</p>
</div>
But php code made this.
<div class="sampleNumberIndex">
<p> </p>
<h2> 1 </h2>
<p> </p>
</div>
I'm using chrome, what did make it like that?