Posts by João Fernando Zanato • 43 points
4 posts
-
1
votes3
answers140
viewsA: I can’t view all data with foreach in PHP with data from an API
I was able to solve by creating a new array with the results: foreach ($myArray2['results'] as $key => $value) { $myArray2['results'][$key] = array('date' => date('d-m-Y',…
-
-2
votes3
answers140
viewsQ: I can’t view all data with foreach in PHP with data from an API
I am trying to bring to a simpler way the following information coming from an API: { "results": [ { "date": "2020-01-05T00:00:00Z", "total": 100, "visits_detail": [ ] }, { "date":…
-
2
votes1
answer464
viewsQ: I need help showing all the items in an array with Javascript
I am using AXIOS to access the API and can return only the first result. I copied only one part of the code below, but everything works perfectly when I enter the index [0].…
-
1
votes1
answer356
viewsQ: I’m trying to print the result using Xios
I’m trying to understand how Xios works, but I’m stuck when it comes to printing the information on the screen. I can view the result through the browser console and a Undefined on top, but I don’t…