In this video tutorial, we will get our feet wet and program our first PHP script. It is not flashy, but it is a start to learning how PHP works. We also learn how to do a single line comment in this tutorial. The command we will learn is called echo. Echo displays PHP variable data in HTML format to the end user. This forms a statement and we learn that statements, must be closed with a semicolon.
Let’s Write A PHP Script
This video gets us started with PHP and has us output some simple text to the browser!
<html> <body> <h1>PHP Testing</h1> <?php // Code will output Hello Nathan echo "Hello Nathan!"; ?> </body> </html>