PHP: Tags

PHP is probably the only language where you can't start coding right away, because the interpreter (a program that executes code) will evaluate your code as plain text. Any code in PHP should be wrapped in <?php ?>.

PHP allows you not to specify the closing tag ?>. In our lessons we will be omitting it and it won't affect anything. But coding standards (rules on how to write code) in different companies require adding the closing tag ?>.


Type the following code into the editor and don't forget that it should start with <?php.


print_r('King in the North!');


If you got stuck and don't know what to do, you can ask a question in our huge and friendly community