I am writing a python script but I’m getting ideas from a php implementation. However, I’ve never spent time working on php before. Could someone explain to me this structure:
1. for ($i=0; $i<$invarint_value; $i++) {
2. $array['vin'][$i]['txid'] = swapEndian(substr($data, 0, 64));
3. }
Original php code: link, line 46
I’m trying to create its python version. I’m interested in understanding the data structure in the left-hand side of line 2. Thanks!