So I have the following line of code
preg_match_all("/<small>(.*)<\/small>/", $html_string, $out_newsource);
that gets all the occurances of <small>source1 here </small>
to print these I out I do somethig like
While(List(,$source_link) = Each($out_newsource[1]))
Echo "News Srouce". $source_link . "<br>";
however, what I really want is to put each occurance of <small>whatever</small> into a seperate variable....or into an array, so I could get source 1 by saying $source_link[1], get source 2 by saying $source_link[2], etc
how would I go about doing that?