Let's say that I have a string of text like this:
<strong>7pt.<sup>4</sup> (130lb. T<sup>5</sup>/72lb. C<sup>6</sup>) Glossy<sup>®</sup> Ultra gloss text cover</strong>
I would like to know how to find all the values of the text that falls between the sup tags and throw them into an array. Ideally, I would like to be able to create an array like this:
$footnote_array[] = 4;
$footnote_array[] = 5;
$footnote_array[] = 6;
Any ideas?
Thanks