SyntaxFix
Write A Post
Hire A Developer
Questions
You need to make the decode function return an array by passing in the true parameter.
true
json_decode(file_get_contents($file),true);