Answer the question
In order to leave comments, you need to log in
How to output JSON data through PHP?
There is a link to JSON code
188.225.25.159:6734/api/diets
I get it this way:
$json = file_get_contents('http://188.225.25.159:6734/api/diets');
$obj = json_decode($json);
$obj["title"]
Answer the question
In order to leave comments, you need to log in
$arr = (array) json_decode ( file_get_contents('http://188.225.25.159:6734/api/diets'));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question