Creating Folders in PHP

The function mkdir allows you to create a folder. It accepts the path to the folder as a parameter. Example:

php<?php
  mkdir('dir');
?>
Задание 1

Create a folder named dir in the root of your website.

Задание 2

Given an array with strings. Create folders in the root of your website, using the elements of this array as their names.

Задание 3

Create a folder named test in the root of your website. Then create three files inside this folder: 1.txt, 2.txt, 3.txt.