PHP Taskbook Level 7.9

Задание 1

Given a text file, get the number of empty lines from this file.

Задание 2

You are given a text file. Check that the first word of each sentence in this file begins with a capital letter.

Задание 3

Write a function that will take a path to a folder as a parameter and return the number of files in this folder and its subfolders.

Задание 4

Given a folder with files and subfolders. Find all the pictures and move them to a new folder. Make sure that all the pictures have unique names.

Задание 5

You are given a text file. It contains a text divided into sentences. Mix the words in each sentence of the text and write the resulting text into a new file.

Задание 6

Write a program that will generate the following string:

php'-1-12-23-34-45-'
Задание 7

Write a program that will generate the following array:

php[
  12,
  34,
  56,
  78,
  90,
]