Instructions

Instruction is a command given to computer. PHP code is a set of instructions separated by ;.

Here is an example of code with two instructions. When you run this code you will see two sentences on the screen, one after the other.

<?php

print_r('Mother of Dragons');
print_r('Dracarys!');

Actually, it’s possible to put multiple instructions on the same line:

<?php

print_r('Mother of Dragons'); print_r('Drakarys!');

but it’s considered bad practice.

instructions

Output these three names on the screen, one after the other: “Robert”, “Stannis”, “Renly”.


definitions

  • Instruction — a command given to computer. PHP code is a set of instructions separated by ;


Exercise available only for signed users.

Please sign in with your GitHub account, this is necessary to track the progress of the lessons. If you do not have an account yet, now is the time to create an account on Github.