PHPda fayllarni qo‘shish

Faraz qilaylik, bizda bitta fayl bor:

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

Yana ikkinchi fayl ham bor deb faraz qilaylik:

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

Keling, ikkinchi fayl tarkibini birinchisiga qo‘shamiz. Bunga include operatori yordamida erishiladi:

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

Xuddi shu faylni necha marta bo‘lsa shuncha qo‘shish mumkin:

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

file1.php, file2.php, file3.php fayllarini yarating. Ularni asosiy faylingizga ulang.