PHP-da faýllary goýmak
Bizde bir faýl bolsun:
index.php<?php
echo 'index';
?>
Ýene bir ikinji faýl hem bolsun:
test.php<?php
echo 'test';
?>
Geliň ikinji faýlyň mazmunyny birinjisine goýup göreýliň.
Bu include operator bilen amala aşyrylýar:
index.php<?php
include 'test.php';
echo 'index';
?>
Şol bir faýly näçe gezek bolsa hem goýmak bolýar:
index.php<?php
include 'test.php';
include 'test.php';
include 'test.php';
echo 'index';
?>
Задание 1
file1.php, file2.php,
file3.php faýllaryny düzüň. Olary siziň
esasy faýlyňyza birikdiriň.