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

iphone - Using nested NSDictionary with Picker -

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

php - Time zone issue -