Questions tagged as 'array-push'

3
answers

Check if array contains specific character

I need to check if an array has a specific character (this: |). If it contains, this character must be deleted, and the next word that would be after that character (which actually is a separator of items) would be added in the next index. That...
asked by 14.12.2018 / 03:05
2
answers

invert push order

I'm using push in a request to put new element in a list, but I noticed that push puts the last result down. I want to reverse this. I'm using v-for to list, but I believe the "fix" will be in the same push ... follow the code: dados.ret...
asked by 12.09.2018 / 22:52
1
answer

Array split with array_push for multiple INSERT in SQL

I have a foreach looping in a file's data, this loop generates some values that are entered in array with array_push , precise break those values entered in this array to generate multiple INSERT INTO because...
asked by 01.05.2018 / 04:10
1
answer

Array inside Array

Good evening, I'm consuming a webservice and I get the data in json with cURL. I have the data stored in the variable $ data. What I need is the following: Let's suppose that in the $ data variable you have the following data: $data = [...
asked by 01.08.2018 / 04:28
1
answer

Help in JavaScript contact list program

I have to make a simple JavaScript program that will show the user's contact list and will allow it to insert a new contact, as in the image below and the description of the problem is as follows: Each contact should have a first and last name T...
asked by 08.11.2018 / 18:51