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
Post a Comment