77 of 100 menu

PHP Taskbook Level 8.7

Given a word, mix the letters of this word in random order.

A form with an input is given. A number is entered into the input. After sending the form, output to the list ul all possible variants of decomposition of the number into two factors.

Display the following pyramid on the screen:

999999999
88888888
7777777
666666
55555
4444
333
22
1

Given a list of events for specific dates, stored in the following structure:

<?php $events = [ '2019-12-29': ['name1', 'name3', 'name5', 'name7'], '2019-12-30': ['name4', 'name8', 'name9'], '2019-12-31': ['name2', 'name6'], ] ?>

Write code that will remake the data structure into this:

<?php $events = [ [ 'date' => '2019-12-29' 'event' => 'name1' ], [ 'date' => '2019-12-31' 'event' => 'name2' ], [ 'date' => '2019-12-29' 'event' => 'name3' ], [ 'date' => '2019-12-30' 'event' => 'name4' ], [ 'date' => '2019-12-29' 'event' => 'name5' ], [ 'date' => '2019-12-31' 'event' => 'name6' ], [ 'date' => '2019-12-29' 'event' => 'name7' ], [ 'date' => '2019-12-30' 'event' => 'name8' ], [ 'date' => '2019-12-30' 'event' => 'name9' ], ] ?>
English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline