Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. $req = array(
  2. 'wd[wd1][amount]' => 1.00,
  3. 'wd[wd1][address]' => 'address',
  4. 'wd[wd1][currency]' => 'USD',
  5. 'wd[wd2][amount]' => 0.0001,
  6. 'wd[wd2][address]' => 'address',
  7. 'wd[wd2][currency]' => 'USD',
  8. 'wd[wd3][amount]' => 0.0001,
  9. 'wd[wd3][address]' => 'address',
  10. 'wd[wd3][currency]' => 'USD',
  11. 'wd[wd4][amount]' => 0.01,
  12. 'wd[wd4][address]' => 'address',
  13. 'wd[wd4][currency]' => 'USD',
  14. );
  15.  
  16. for($i=0;$i<count($address_ary);$i++){
  17. $n=$i+1;
  18.  
  19. $str.= "'wd[wd".$n."][amount]' => 1.00,
  20. 'wd[wd".$n."][address]' => '".$address_ary[$i]."',
  21. 'wd[wd".$n."][currency]' => 'USD',";
  22. }
  23.  
  24. $req = array(
  25. $str,
  26. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement