title: php get weeklist of multitple days
body: <p>I want to achieve a dynamic weeklist with daynames.</p>
  
  <p>My data in an array:</p>
  
  <pre><code> 12.03.2018 10:00:00
   13.03.2018 10:00:00
   14.03.2018 10:00:00
   14.03.2018 13:00:00
   14.03.2018 15:00:00
   15.03.2018 10:00:00
   16.03.2018 10:00:00
  </code></pre>
  
  <p>Wished dynamic output with php:</p>
  
  <pre><code> Monday
   12.03.2018 10:00:00
   Tuesday
   13.03.2018 10:00:00
   Wednesday
   14.03.2018 10:00:00
   14.03.2018 13:00:00
   14.03.2018 15:00:00
   Thursday
   15.03.2018 10:00:00
   Friday
   16.03.2018 10:00:00
  </code></pre>
  
  <p>I know that I get the day name like this:</p>
  
  <pre><code>$myDateTime = DateTime::createFromFormat('YmdHi', '201803121830');
  echo $myDateTime -&gt;format('D');
  </code></pre>
  
  <p>How do I do this dynamically?</p>