Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to print HTML page with tags using PHP

    • 0
    • 0
    • 0
    • 0
    • 1
    • 0
    • 0
    • 0
    • 360
    Comment on it

    If you have any blogs or coding part that you need to show with the html tags, Then using PHP then you can perform this task

    Lets say print the line below:-

    <h1>I'm printing this line using the HTML tags</h1>
    

    To print this line I use the code as below:-

    <?php
    echo htmlentities("<h1>I'm printing this line using the HTML tags</h1>"); 
    ?>
    

 1 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: