Inclusione di file in PHP

Supponiamo di avere un file:

index.php<?php
  echo 'index';
?>

Supponiamo anche che ci sia un secondo file:

test.php<?php
  echo 'test';
?>

Inseriamo il contenuto del secondo file nel primo. Questo viene fatto utilizzando l'operatore include:

index.php<?php
  include 'test.php';
  echo 'index';
?>

Lo stesso file può essere incluso quante volte si desidera:

index.php<?php
  include 'test.php';
  include 'test.php';
  include 'test.php';
  
  echo 'index';
?>
Задание 1

Crea i file file1.php, file2.php, file3.php. Includili nel tuo file principale.