How to use HTML tags in PHP echo?

By Prof. Fazal Rehman Shamil
How to HTML tags in PHP echo?

Example 1: This example demonstrates that how HTML tags can be used in  PHP echo to display the result.


Example 2: This example demonstrates that how HTML tags can be used in  PHP echo to display the result by Separating HTML from PHP.

Example 3: We can use <<< heredoc to print the html. <<< must be followed by an identifier and line break.

<<<GFG
// HTML Markup
GFG;

Example 3: How PHP echo in HTML tables using database MySQL and Mysqli table?

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.