Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Name it with your title</title>
- <head>
- <body>
- Name it with your content of HTML<br><br> <!--HTML code goes here-->
- <?php
- echo("This is the PHP section<br>"); //PHP code goes here
- //This is single line comment in PHP
- /*This is more than single
- line comment in PHP*/
- $a=1;
- $b=2;
- $c=$a+$b;//"$" defines a variable
- $d=Hi;
- echo("$d<br>");
- $e=$d+$c;//string will defines "0"
- echo("$e<br>");
- echo("<br>$b<br>");
- echo("$c<br><br>");
- for($d=1;$d<=5;$d++)
- echo"$d. Hello word<br>";
- for($d=5;$d>=1;$d--)
- echo"<br>$d. Hi World";
- echo("<font color=\"darkgreen\"><br><br>The date <br></font>");//you can add the color with text
- echo date("<br><br>d-m-y H:i:s"); //line break in echo date is doesn't matter
- echo("<font color=\"00FF00\"><br>The other date <br></font>");//or you can add the color tag with hex
- echo date("D-M-Y H:i:s");
- ?>
- <br><br>This is the HTML section<br>
- <?php
- echo("And of course this is the PHP section");
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement