I have this statement inside a loop.
$chosenUrls = explode ( ',' , $connect[$i]['url'] );
Is there anyway to get it to add to the $chosenUrls array, rather than replacing what's in there?
Try:
$chosenUrls=array();
for(...)
{
array_push($chosenUrls,explode ( ',' , $connect[$i]['url'] ));
}
array (size=1) 0 => array (size=2) 0 => string 'http://www.vcricket.com/' (length=24) 1 => string 'http://www.surreycricket.com/' (length=29)