yvolkan adlı üyeden alıntı: mesajı görüntüle
<?php
$tmpArray = array();
for($i=0;$i<10;$++){
	if ( $i==0 ){
		$tmpStr = ${$reg};
	} else {
		$tmpStr = ${$reg. $i};
	}
	
	$json_url = "https://localhost/$tmpStr/"; //$regden $reg10 a kadar gidiyor
	$json_data = file_get_contents($json_url);
	$content = json_decode($json_data);
	
	$degree = $content->participants->degree; //ve hepsinin içinden çektiğim degree değeri farklı
	
	$tmpArray[ $tmpStr ] = $degree;
	
}

print_r( $tmpArray );
?>

şöyle bir şey mi istiyorsunuz acaba?
hocam hemen hemem boyle ancak degree2 yi nasil alirim $tmpArray[0] şeklinde mi?