Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php delete json object from a collection object

$id = 1;

foreach ($array as $key => $arr) {
            if($arr->id == $id) {
                unset($array[$key]);
            }
        }
 
PREVIOUS NEXT
Tagged: #php #delete #json #object #collection #object
ADD COMMENT
Topic
Name
8+8 =