How to upload from database into php variables and insert into html form?

How to make the html code itself, but the php variables inserted into it?
Something like this:
<?php
$id = 1
$name = 'Bob'-->


the <div>
<p> $id $name </p><p>

</p></div>


That it was without echo function.
July 2nd 19 at 14:21
1 answer
July 2nd 19 at 14:23
Solution
<?php
$id = 1;
$name = 'Bob';
?>


the <div>
<p><?= $id; ?> <?= $name; ?></p><p>

</p></div>


UPD:
www.php.net/basic-syntax.phpmode
www.php.net/alternative%20syntax
and there is where you can read about it? - Millie_Bechtel commented on July 2nd 19 at 14:26
: updated the answer - nicklaus.Will commented on July 2nd 19 at 14:29
the same echo, only in shortened form) - kaia_Mull commented on July 2nd 19 at 14:32
: I understand the question is how to separate PHP and HTML - nicklaus.Will commented on July 2nd 19 at 14:35

Find more questions by tags PHPMySQLHTML