Summary

You should now have the tools at your disposal to run a simple PHP script on a properly configured server.

In this hour, you created your first PHP script. You also learned how to use a text editor to create and name a PHP document. You examined four sets of tags that you can use to begin and end blocks of PHP code, and you learned how to use print() to send data to the browser. Then you brought HTML and PHP together into the same script. Finally, you learned about comments and how to add them to PHP documents.

In the next hour, you will use these skills to test some of the fundamental building blocks of the PHP language, including variables, data types, and operators.

Get Sams Teach Yourself PHP in 24 Hours, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.