Oh… I see
Yes… correct… it is a multi-dimensional array. (with a sub-array)
$array['vin'][0]['txid'] = 'xxx'
$array['vin'][1]['txid'] = 'yyy'
$array['vin'][2]['txid'] = 'zzz'
So the difference here is… that the
$array['vin'][$i]
Is just an index/pointer to the TXID value
$array[‘vin’][$i][‘txid’] points to the actual value
There might be other info associated with each ‘VIN’ as well.
$array['vin'][0]['txid']
$array['vin'][0]['owner_name']
$array['vin'][1]['txid']
$array['vin'][1]['owner_name']
So $array[‘vin’][$i] is just what VIN (in an array of VIN’s) that you are looking at. (or assigning values to)
So not only is it an array of VIN’s… but each VIN is an array as well… so you need to then access the data in the VIN (sub) array.
Unfortunately… I know ‘0’ Python… (although I plan on it playing with it soon… as I do Arduino/RaspberryPi projects… and it would probably be easier!) LOL
Hope that helps.