Failų įterpimas PHP

Tarkime, kad turime vieną failą:

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

Tarkime, kad taip pat yra antrasis failas:

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

Įterpkime antrojo failo turinį į pirmąjį. Tai daroma naudojant operatorių include:

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

Tą patį failą galima įterpti bet kiek kartų:

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

Sukurkite failus file1.php, file2.php, file3.php. Prijunkite juos prie savo pagrindinio failo.