1
如何修改嵌套數組例如如何更新嵌套數組
`array (
'_id' => new MongoId("4e3a81376155a9d439000000"),
'name' => 'Umar',
'password' => 'rose',
'email' => '[email protected]',
'experience' =>
array (
0 =>
array (
'company' => 'ibm',
'from' => '2005',
'to' => '2007',
),
1 =>
array (
'company' => 'sun',
'from' => '2007',
'to' => '2009',
),
2 =>
array (
'company' => 'oracle',
'from' => '2009',
'to' => 'still',
),
),
)
`
現在我想更新公司太陽從價值現有值是2007年我想改變與2006年。我正在使用PHP。
請你幫忙。
最好的問候,
歐麥爾
喜洛朗謝謝, –