Categories
json inside html php comment?
If you open the page, it will be empty, and if you open it through code views, then an html comment will appear in which the JSON data is located. How to read such JSON page with php?
Answer the question
In order to leave comments, you need to log in
the easiest
$string = "...html comment..."; $string = substr($string, 0, -3); $string = substr($string, 4); return json_decode($string);
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question