Add, Update, Delete and Read JSON Data/File usingPHP
Add, Update, Delete and Read JSON Data/File usingPHP
jsonResultSet.json [ { “ID”: “1”, “Name”: “Ram “, “Sports”: “Base Ball” }, { “ID”: “2”, “Name”: “libero Ram”, “Sports”: “Soccer” }, { “ID”: “3”, “Name”: “kumar”, “Sports”: “Tennis” } ] Read JSON File in PHP <?php $data = file_get_contents(‘jsonResultSet.json’); $json_array = json_decode($data, true); foreach ($json_array as $key => $value) { echo $json_array[$key] . ” – ” .…
View On WordPress













