0

My document where data is to be inserted is: Data has to be appended to array with key as Solutions

Suppose $data has some numerical value

array(8) {
["_id"]=>
object(MongoId)#9 (1) {
["$id"]=>
string(24) "56d32613097ed36c10000049"
}
["Username"]=>
string(4) "xxx"
["Solutions"]=>
array(0) {
}
}

Suppose $j= "The entire above array" How to push the value of $data in the array having key as "Solutions"?

SiddAjmera
  • 38,129
  • 5
  • 72
  • 110
Aishwarya R
  • 647
  • 2
  • 12
  • 25

0 Answers0