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