PHP Taskbook Level 7.8

Задание 1

Given a text file, shuffle the words in this file in random order.

Задание 2

You are given a text file. Get all the unique words from this file. Write the result to a new file, so that each row contains 10 words separated by spaces.

Задание 3

Write a program that will generate the following array:

php[
  '1',
  '12',
  '123',
  '1234',
  '12345',
  '1234',
  '123',
  '12',
  '1',
]