First Program Of PHP Hello Word | PHP Tutorial for Beginners to Advance Full Course | Part 10

Step 1 : Start Your Server Like XAMPP Or WAMP 

Step 2 : Create One .php file in your htdocs folder 

Step 3 : Write Code 

 

Example 1  

Only PHP Code 

<?php 
echo "<h1 style='color:red'>Hello Word</h1>";
?>

 

Example 2 :

How To Use PHP With HTML

<html>
    <head>
        <title>Hello Word Program</title>
    </head>
    <body>
    <h2><?php echo "Hello Word With HTML"; ?></h2>
    </body>
</html>
    


    


    

 

Tutorial Topics