On the problem of object merging

The values of

name are looped out in the background, and I added them to the object, and now the question is, how can I merge these two objects together, or add both of them to the same array? Because I take the value outside the loop, the value taken out each time is the key=2569 data

Mar.11,2021

define a new array, then put these two push in, and cycle


you can only get the last value,
because they point to the same address,
so each time the old object is overwritten by the new object.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b33bb8-40efb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b33bb8-40efb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?