© Mikael Olsson 2021
M. OlssonPHP 8 Quick Scripting Referencehttps://doi.org/10.1007/978-1-4842-6619-9_1

1. Using PHP

Mikael Olsson1  
(1)
Hammarland, Finland
 
To start developing in PHP, create a plain text file with a .php file extension and open it in the editor of your choice—for example, Notepad, jEdit, Dreamweaver, NetBeans, or PHPEclipse. This PHP file can include any HTML, as well as PHP scripting code. Begin by first entering the following minimal markup for an HTML 5 web document.
<!doctype html>
<html>
 <head>
  <meta charset="UTF-8">
  <title>PHP Test</title>
 </head>
 <body></body>
</html>

Embedding PHP

PHP code can be embedded anywhere in a web document in several different ways. The standard notation is to delimit the code by <?php and ?>. This ...

Get PHP 8 Quick Scripting Reference: A Pocket Guide to PHP Web Scripting 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.