title: Create an array from id's from divs
body: <p>On my page I've got many div elements which have the same class:</p>
  
  <pre><code>&lt;div class="item" id="lorem"&gt;Asdf&lt;/div&gt;
  &lt;div class="item" id="ipsum"&gt;Asdf&lt;/div&gt;
  &lt;div class="item" id="dolor"&gt;Asdf&lt;/div&gt;
  </code></pre>
  
  <p>Now I would like to save the id from every div to an array. It should then look like this:</p>
  
  <pre><code>$array = ["lorem", "ipsum", "dolor"];
  </code></pre>
  
  <p>How can I do this properly?</p>