PHP Taskbook Level 2.3

Задание 1

Given two words, check that the last letter of the first word matches the first letter of the second word.

Задание 2

Given a string, find the position of the third zero in the string.

Задание 3

The numbers are given, separated by commas:

php'12,34,56'

Find the sum of these numbers.

Задание 4

The date is given in the following format:

php'2025-12-31'

Convert this date to the following array:

php[
  'year'  => '2025',
  'month' => '12',
  'day'   => '31',
]