title: Simple php array sum not working (add's up to zero)
body: <p>I have an auto generated array liek so.. (looks like real data but has been anonymized)..</p>
  
  <pre><code>Array
  (
      [16280] =&gt; Array
          (
              [0] =&gt; 16280
              [1] =&gt; 19-04696-34480
              [2] =&gt; Helen*smith
              [3] =&gt; helen smith
              [4] =&gt; hellieh77@live.com
              [5] =&gt; 
              [6] =&gt; 1 green hill
              [7] =&gt; Sedgley
              [8] =&gt; Dudley
              [9] =&gt; West Midlands
              [10] =&gt; DY4 2BJ
              [11] =&gt; United Kingdom
              [12] =&gt; Helen smith
              [13] =&gt; +44 7780 123456
              [14] =&gt; 1 green hill
              [15] =&gt; Sedgley
              [16] =&gt; Dudley
              [17] =&gt; West Midlands
              [18] =&gt; DY4 2BJ
              [19] =&gt; United Kingdom
              [20] =&gt; 
              [21] =&gt; 
              [22] =&gt; 
              [23] =&gt; 
              [24] =&gt; 4
              [25] =&gt; £1.99
              [26] =&gt; £0.00
              [27] =&gt; 
              [28] =&gt; £0.00
              [29] =&gt; £0.00
              [30] =&gt; £1.99
              [31] =&gt; No
              [32] =&gt; PayPal
              [33] =&gt; 20-Mar-20
              [34] =&gt; 20-Mar-20
              [35] =&gt; 
              [36] =&gt; 
              [37] =&gt; 
              [38] =&gt; 
              [39] =&gt; 
              [40] =&gt; 
              [41] =&gt; 
              [42] =&gt; 97A17674UX562625N
              [43] =&gt; Royal Mail 1st Class
              [44] =&gt; 
              [45] =&gt; 
              [46] =&gt; 
              [47] =&gt; No
              [48] =&gt; 
              [49] =&gt; No
              [50] =&gt; 
              [51] =&gt; No
              [52] =&gt; 16280
              [53] =&gt; 19-04696-34480
              [54] =&gt; Helen*smith
              [55] =&gt; 
              [56] =&gt; 
              [57] =&gt; 
              [58] =&gt; 
              [59] =&gt; 
              [60] =&gt; 
              [61] =&gt; 
              [62] =&gt; 
              [63] =&gt; 
              [64] =&gt; 
              [65] =&gt; 
              [66] =&gt; 
              [67] =&gt; 
              [68] =&gt; 
              [69] =&gt; 
              [70] =&gt; 
              [71] =&gt; 
              [72] =&gt; 302804824258
              [73] =&gt; SAVE A BIKER OPEN YOUR EYES - THINK BIKE DECAL STICKER WALL CAR VAN LAPTOP BIKE 
              [74] =&gt; Default Colour (if non specified) = WHITE
              [75] =&gt; No
              [76] =&gt; 1
              [77] =&gt; £0.50
              [78] =&gt; 
              [79] =&gt; 
              [80] =&gt; 
              [81] =&gt; 
              [82] =&gt; 
              [83] =&gt; 
              [84] =&gt; 
              [85] =&gt; 20-Mar-20
              [86] =&gt; 
              [87] =&gt; 23-Mar-20
              [88] =&gt; 
              [89] =&gt; 
              [90] =&gt; 
              [91] =&gt; No
              [92] =&gt; 
              [93] =&gt; 
              [94] =&gt; 
              [95] =&gt; 
              [96] =&gt; 
              [97] =&gt; 1726051559020
              [98] =&gt; 
              [99] =&gt; 
              [100] =&gt; 
              [101] =&gt; 
              [102] =&gt; 
              [103] =&gt; 
              [104] =&gt; 16280
              [105] =&gt; 19-04696-34480
              [106] =&gt; Helen*smith
              [107] =&gt; 
              [108] =&gt; 
              [109] =&gt; 
              [110] =&gt; 
              [111] =&gt; 
              [112] =&gt; 
              [113] =&gt; 
              [114] =&gt; 
              [115] =&gt; 
              [116] =&gt; 
              [117] =&gt; 
              [118] =&gt; 
              [119] =&gt; 
              [120] =&gt; 
              [121] =&gt; 
              [122] =&gt; 
              [123] =&gt; 
              [124] =&gt; 303176299926
              [125] =&gt; Personalised Mrs Hinch /Zoflora/Lenor 2x Vinyl Stickers Storage Baskets Bottles[Glossy Yellow,25mm (2.5cm)]
              [126] =&gt; CLNLBL_Gl_50
              [127] =&gt; No
              [128] =&gt; 1
              [129] =&gt; £0.46
              [130] =&gt; 
              [131] =&gt; 
              [132] =&gt; 
              [133] =&gt; 
              [134] =&gt; 
              [135] =&gt; 
              [136] =&gt; 
              [137] =&gt; 20-Mar-20
              [138] =&gt; 
              [139] =&gt; 23-Mar-20
              [140] =&gt; 
              [141] =&gt; 
              [142] =&gt; 
              [143] =&gt; No
              [144] =&gt; 
              [145] =&gt; 
              [146] =&gt; 
              [147] =&gt; 
              [148] =&gt; 
              [149] =&gt; 1726051564020
              [150] =&gt; [Colour:Glossy Yellow,Size (Height):25mm (2.5cm)]
              [151] =&gt; 
              [152] =&gt; 
              [153] =&gt; 
              [154] =&gt; 
              [155] =&gt; 
              [156] =&gt; 16280
              [157] =&gt; 19-04696-34480
              [158] =&gt; Helen*smith
              [159] =&gt; 
              [160] =&gt; 
              [161] =&gt; 
              [162] =&gt; 
              [163] =&gt; 
              [164] =&gt; 
              [165] =&gt; 
              [166] =&gt; 
              [167] =&gt; 
              [168] =&gt; 
              [169] =&gt; 
              [170] =&gt; 
              [171] =&gt; 
              [172] =&gt; 
              [173] =&gt; 
              [174] =&gt; 
              [175] =&gt; 
              [176] =&gt; 303261272249
              [177] =&gt; Heart Spiral Optical Illusion - Love - Vinyl Decal Sticker - 16 Colour Choices[Red,Standard,STD 95x95mm]
              [178] =&gt; heartspiral _Re_ST_St
              [179] =&gt; No
              [180] =&gt; 1
              [181] =&gt; £0.45
              [182] =&gt; 
              [183] =&gt; 
              [184] =&gt; 
              [185] =&gt; 
              [186] =&gt; 
              [187] =&gt; 
              [188] =&gt; 
              [189] =&gt; 20-Mar-20
              [190] =&gt; 
              [191] =&gt; 23-Mar-20
              [192] =&gt; 
              [193] =&gt; 
              [194] =&gt; 
              [195] =&gt; No
              [196] =&gt; 
              [197] =&gt; 
              [198] =&gt; 
              [199] =&gt; 
              [200] =&gt; 
              [201] =&gt; 1726051560020
              [202] =&gt; [Colour:Red,Fitment:Standard,Size:STD 95x95mm]
              [203] =&gt; 
              [204] =&gt; 
              [205] =&gt; 
              [206] =&gt; 
              [207] =&gt; 
              [208] =&gt; 16280
              [209] =&gt; 19-04696-34480
              [210] =&gt; Helen*smith
              [211] =&gt; 
              [212] =&gt; 
              [213] =&gt; 
              [214] =&gt; 
              [215] =&gt; 
              [216] =&gt; 
              [217] =&gt; 
              [218] =&gt; 
              [219] =&gt; 
              [220] =&gt; 
              [221] =&gt; 
              [222] =&gt; 
              [223] =&gt; 
              [224] =&gt; 
              [225] =&gt; 
              [226] =&gt; 
              [227] =&gt; 
              [228] =&gt; 303383128781
              [229] =&gt; Not all disabilities are visible (CIRCLE Design) Vinyl Sticker for Car/Van/Wall[Reverse Cut,STD 95x95mm,White]
              [230] =&gt; Notalldisabilitiescircle_Li_XL_St
              [231] =&gt; No
              [232] =&gt; 1
              [233] =&gt; £0.58
              [234] =&gt; 
              [235] =&gt; 
              [236] =&gt; 
              [237] =&gt; 
              [238] =&gt; 
              [239] =&gt; 
              [240] =&gt; 
              [241] =&gt; 20-Mar-20
              [242] =&gt; 
              [243] =&gt; 23-Mar-20
              [244] =&gt; 
              [245] =&gt; 
              [246] =&gt; 
              [247] =&gt; No
              [248] =&gt; 
              [249] =&gt; 
              [250] =&gt; 
              [251] =&gt; 
              [252] =&gt; 
              [253] =&gt; 1726051562020
              [254] =&gt; [Fitment:Reverse Cut,Sticker Size:STD 95x95mm,Sticker Colour:White]
              [255] =&gt; 
              [256] =&gt; 
              [257] =&gt; 
              [258] =&gt; 
              [259] =&gt; 
          )
  )
  </code></pre>
  
  <p>And I am trying to do a simple addition sum but both..</p>
  
  <pre><code>&lt;?php echo $order[25] + $order[77]; ?&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;?php
  $sum1 = array($order[25], $order[77]);
  echo array_sum($sum1);
  ?&gt;
  </code></pre>
  
  <p>Result in "0" when in this example it should be adding up to 1.49 what am I doing wrong, please?
  Is it something to do with having to convert them (integer or a string.)? and if so how do I go about this?</p>