I'm trying to add values to an array in a while loop in php, however, I can't seem to do so. Values are added to the array if I just test with strings, but using variables doesn't work. The variables ($array[$j][0]) can be echoed by themselves but not added to the added array.
while($j>0){
$added=array();
$added[]=$array[$j][0];
}
print_r($added);