Write HTML in PHP

Examples for : Write HTML in PHP

With print command , you can output HTML code inside php.

Sample code :

1
print("<b>This is point to print.</b>");

To use quotes inside print command , use \" inside code.

1
print("<a href="\"http://www.google.com\"">Visit Google</a>");

With echo , html output can be done inside php.

1
echo "<h1>This is HTML code inside echo syntax inside php</h1>";

No comments:

Post a Comment