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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -