I am trying to add new arrays to an existing array ... Declare $node = array();. outside the while loop.
stackoverflow.com