Posts by Marcos Couto • 45 points
3 posts
-
0
votes4
answers830
viewsA: How to search for value in Array/object in PHP?
You will have to go putting the keys as indexes, run the example below: <?php $array[0]['teste'][12]['abc'] = "ola"; print_r($array); ?> Note that an array has been created with the keys 0,…
-
2
votes1
answer560
viewsQ: Read API return on a Jsonobject in case of errors in the URL
I am trying to consume a weather forecast API (https://openweathermap.org/current) in Java but I have a question regarding the return of JSONObject. I’m using the following code to generate the…
-
1
votes2
answers2024
viewsQ: Return of Request (Node.js)
I’m trying to consume an API with request, but I’d like to know how to assign the return to a variable. Here’s my code: var response function getWeather() { request(url, function (error, response,…