I need to know if using explode or substr I can get the values between the span tags of the following loop code. What would be the appropriate syntax? THANK YOU!
Edit: all HTML computation is a field obtained from the bbdd
<div id="grupo"><span>5</span><p>Invitacion de boda calendario 1</p><p>Cantidad : 1</p></div>
<div id="grupo"><span>6</span><p>Invitacion de boda calendario 2</p><p>Cantidad : 1</p></div>
<div id="grupo"><span>7</span><p>Invitacion de boda calendario 3</p><p>Cantidad : 1</p></div>