PHP Taskbook Level 10.3
Given an array of six digits, check if you can assemble a winning ticket from these digits.
Write a code that will generate a password of a given size. The password must contain a lowercase and uppercase letter, a number, and some special symbol.
Given two numbers, display the process of dividing these numbers in a column, as in school.
Given a string containing two numbers and a mathematical operation between them:
'10 + 20'
Write code that will calculate the result of the written mathematical operation.
Given an arbitrary two-dimensional array:
[
[11, 12, 13],
[21, 22, 23],
[31, 32, 33],
]
Write some code that will add another row and another column to it, filled with random values:
[
[11, 12, 13, 14],
[21, 22, 23, 24],
[31, 32, 33, 34],
[41, 42, 43, 44],
]
Let the database store a table of the following type:
| id | name | date | price | amount |
|---|---|---|---|---|
| 1 | prod1 | 2020-12-31 | 100 | 3 |
Using the data in this table, get an array containing the sum of orders by year and month:
[
'2020' => [
'01' => '...',
'02' => '...',
],
'2021' => [
'11' => '...',
'12' => '...',
],
];