- <html>
- <head>
- <title>hello world</title>
- </head>
- <body>
- <?php
- // Setting Variables
- $txt1="Hello World!";
- $txt2="What a nice day!";
- // Methods of Displaying Variable Values...
- echo "Using echo statment:<br />";
- echo "\$txt1 is: " . $txt1 . "<br />";
- echo "\$txt2 is: " . $txt2;
- // Notice how <br /> is used... can use other tags as well...
- ?>
- </body>
- </html>
Raw Paste