PHP Taskbook Level 9.1

Задание 1

Given a text with punctuation marks, get an array of sentences of this text.

Задание 2

Add target="_blank" to all links leading to someone else's site.

Задание 3

Given a string:

php$str = 'abcde abcde'

The variable stores the following symbols:

php$del = 'abe';

Remove all the characters specified in the variable from the string. In our case, we should get the following:

php'cd cd'
Задание 4

Given an arbitrary two-dimensional array:

php[
  [11, 12, 13, 14, 15],
  [21, 22, 23, 24, 25],
  [31, 32, 33, 34, 35],
  [41, 42, 43, 44, 45],
  [51, 52, 53, 54, 55],
]

Get the array of elements of its main diagonal:

php[
  11, 22, 33, 44, 55
]