PHP에서 파일 포함하기

첫 번째 파일이 있다고 가정해 봅시다:

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

두 번째 파일도 있다고 가정해 봅시다:

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

첫 번째 파일에 두 번째 파일의 내용을 포함시켜 봅시다. 이는 include 연산자를 사용하여 수행됩니다:

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

동일한 파일을 여러 번 포함시킬 수 있습니다:

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

file1.php, file2.php, file3.php 파일을 만드세요. 이 파일들을 여러분의 메인 파일에 포함시키세요.