Nivel 9.8 del libro de problemas PHP

Задание 1

Dada una matriz bidimensional arbitraria:

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],
]

Intercambie dos filas dadas:

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

Supongamos que en un archivo se almacena un JSON de países del siguiente tipo:

countries.json{
  [
    "id": "3",
    "country": "country1",
  ],
  [
    "id": "7",
    "country": "country2",
  ],
  [
    "id": "9",
    "country": "country3",
  ]
}

Muestre estos países en forma del siguiente selector:

html<select>
  <option value="3">country1</option>
  <option value="7">country2</option>
  <option value="9">country3</option>
</select>