title: Filtering, flattening and renaming keys in multidimensional array (Mayflower/Holidays)
body: <p>I am using Mayflower/Holidays in Laravel 7 to get a list of holidays for my region. What I am getting as Json is:</p>
  <pre><code>{&quot;2&quot;:{&quot;type&quot;:&quot;holiday&quot;,&quot;name&quot;:&quot;My Holiday 1&quot;,&quot;weight&quot;:1,&quot;date&quot;:&quot;2020-05-01 00:00:00.000000&quot;,&quot;timezone_type&quot;:3,&quot;timezone&quot;:&quot;Europe\/Berlin&quot;},&quot;5&quot;:{&quot;type&quot;:&quot;holiday&quot;,&quot;name&quot;:&quot;My Holiday 2&quot;,&quot;weight&quot;:1,&quot;date&quot;:&quot;2020-05-20 00:00:00.000000&quot;,&quot;timezone_type&quot;:3,&quot;timezone&quot;:&quot;Europe\/Berlin&quot;}}
  </code></pre>
  <p>That's correct but I need a different representation.</p>
  <pre><code>[{&quot;title&quot;:&quot;My Holiday 1&quot;,&quot;start&quot;:&quot;01.05.2020&quot;},{&quot;title&quot;:&quot;My Holiday 2&quot;,&quot;start&quot;:&quot;20.05.2020&quot;}]
  </code></pre>
  <p>Much lighter, one-dimensional and the keys <code>name</code> and <code>date</code> are supposed to be renamed to <code>title</code> and <code>start</code>. I tried
  various approaches using <code>foreach</code> with <code>array_map</code> but getting errors constantly. What is the best way to do this with PHP 7?</p>