1$filedata = file_get_contents('filename.json');
2$details = json_decode($filedata);
3print_r($details);
1// Get the contents of the JSON file
2$strJsonFileContents = file_get_contents("css-color-names.json");
3var_dump($strJsonFileContents); // show contentsCopy