Home >Backend Development >PHP Problem >Is it possible to delete json in php?
php can delete json. The method is: 1. Create a PHP sample file; 2. Get json data; 3. Delete the specified json through "unset($data['10073']);" Just data.
#The operating environment of this article: Windows7 system, PHP7.1, Dell G3.
php Is it possible to delete json?
#I want to delete the data in the red box through commands, how to do it?
The code is as follows:
<?php $json_data = '{....}'; $data = json_decode($json_data, true); unset($data['10073']); var_dump($data);
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of Is it possible to delete json in php?. For more information, please follow other related articles on the PHP Chinese website!