Special welcome gift. Get 50% off your first courses with code “AS50”. Find out more!

HomeInterviewHow do you embed PHP code in an HTML page?
course 6

How do you embed PHP code in an HTML page?

In an HTML page, all PHP code must be enclosed within either of the three special markup tags recognized by the PHP Parser.

  • <?php PHP code goes here ?>
  • <? PHP code goes here ?>
  • <script language=”php”> PHP code goes here </script>
  • Amongst these <?php…?> is the most commonly used tag.
  • We can chain as many statements as required separating them with semicolons as shown below.

<?php

echo “Hello World”;

echo “A second statement”;

?>

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

Categories

ads sidebar 1

You May Also Like

Oracle has several modes for shutting down the database: In normal mode, the database is shut down by default. It...
Materialized views are items that contain condensed sets of data from base tables that have been summarized, clustered, or aggregated. They...
Every database in Oracle has a tablespace called SYSTEM, which is generated automatically when the database is created. It also...