# PHP basics This chapter will go through a simple PHP program and show you basic PHP syntax. ## Hello world Let's create a *hello world* PHP program, and display the output in the command line and in browser. Create a new file called `hello.php` with the following contents: ```php ## PHP tags First line in above file is a so called *opening PHP tag* - ` ``` * Opening PHP tag: `` And display it in the browser: ```bash php -S localhost:8000 php-and-html.php ``` Now, visit URL `http://localhost:8000` in your favourite browser, and you should see output of `Hello world`. ## Comments Comments in code are language elements that indicate which parts of the code should not be parsed and processed. PHP provides two types of comments: * Single line comments: ```php