Answers for "php get json file"

PHP
1

open json file php

// Get the contents of the JSON file 
$strJsonFileContents = file_get_contents("css-color-names.json");
var_dump($strJsonFileContents); // show contentsCopy
Posted by: Guest on June-19-2021
7

php decode json file

$json = json_decode(file_get_contents('/path/to/your/file.json'));
Posted by: Guest on March-15-2020

Browse Popular Code Answers by Language