php - Remove item from an array Options - Mongodb -


how remove array item mongodb field . example , how remove guitar list of interest . php functions or approaches help.

{          "_id" : objectid("4d1cb5de451600000000497a"),                    "name" : "dannie",           "interests" : [               "guitar",               "programming",                        "gadgets",               "reading"           ]    } 

unset($array['interests']['guitar']) if array in php


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

ASP.NET Javascript: window.open won't work twice -

jquery - Opera does not change the height of the page. Why? -