Questions tagged as 'array'

1
answer

Changing object value inserted in an array

Take a look at this example: link In it I have two arrays: __options e __defaultOptions; When I start dou pushing in __options inserting the __defaultOptions object. Later I change the value of the object in position 0, set in the fiel...
asked by 28.03.2017 / 21:22
1
answer

retrieve rows from a data frame

I need to retrieve the entire DF line, in a new DF, only when I find the element of the vector, in the DF id field ids 2001586 , 2007037,2012677,2020645) df
asked by 27.03.2017 / 20:27
2
answers

Error displaying array return json in php

Error:    Notice: Trying to get property of non-object in   C: \ xampp \ htdocs \ json \ get_json.php on line 6 My php code: <?php $get = 'https://maps.googleapis.com/maps/api/place/autocomplete/json?&location=-18.866269,-41.95...
asked by 22.03.2017 / 21:21
1
answer

Add items within an array to save later

Hello, I have the following situation and would like a tip if possible as would be the logic for implementing this procedure in my Laravel PHP application. I'm creating a stock system, in the moving part, I have an Input view where I select i...
asked by 23.03.2017 / 21:25
1
answer

Two-dimensional array size not being defined

I created an array and put it to initialize with the values passed in the constructor, but it is not initializing. I created the object, I threw the values, but when I call the method to show the matrix, it does not appear, as if it had not been...
asked by 16.03.2017 / 21:12
0
answers

How do I get the contents of my array in ascending order of the keys

I'm having a problem with an app function that I'm creating. I am a beginner in programming to improve my knowledge and wanted to know how to make my function get the contents of the keys of my array in ascending order of these. Example:...
asked by 13.04.2017 / 00:33
3
answers

How do I capture the numbers for an array on a single line?

I have to write a C ++ code in a question where the user first inserts a number that determines the size of an array, and then inserts in a single line, separated by spaces, the numbers of that array so that stored. How do I capture these number...
asked by 15.03.2017 / 05:42
3
answers

Attempt to manipulate values of a vector generated by a JSON

I'm trying to "change" values of a received vector from the consumption of a JSON. My logic was to create a for to go through the vector, parse the item on that partition and rewrite it in a copy vector, thus having a vector with the valu...
asked by 08.03.2017 / 00:51
2
answers

Use the result of an array as the value of an insert - PHP

Good evening, I have a question. I'm uploading a file and extracting its contents and inserting into my database, but I'm having a question about using the array as value > My file consists of a sequence of numbers separated by 15 bloc...
asked by 04.03.2017 / 05:34
1
answer

Pass array as parameter for web api in php with angularjs

In my local environment I use PHP7 and developed API Restful for an application that uses AngujarJS. I needed to do a get request for Api and pass an array as a parameter and I did it that way $http.get("/Api/MinhaUrl.php", { params: {...
asked by 17.02.2017 / 14:37