cpu_figther Posted July 25, 2019 Share Posted July 25, 2019 Hi ! On of the tutorial pages https://www.w3schools.com/js/js_json_html.asp is missing code of php file. As I understand the code should be the same as on previous page of chapter, like: <?php $myObj->name = "John"; $myObj->age = 30; $myObj->city = "New York"; $myJSON = json_encode($myObj);echo $myJSON;?> Sincerely, Alejandro. Link to comment Share on other sites More sharing options...
Funce Posted July 25, 2019 Share Posted July 25, 2019 Hi there Alejandro, The JSON HTML page is different to the JSON PHP due to what they are illustrating. Unlike some of the other tutorials, they do not use sequential examples. This is to avoid someone having to learn a lot of unrelated things to the page that they're currently on. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now