Questions tagged as 'array'

2
answers

How do I return all splits in this function in [PHP]?

Good evening everyone. I'm stuck in a stalemate I can not solve. I need to return 11 times $tot_formatado which corresponds to exactly one time for each installment rate present inside the array. If you repair the $tot_formatado...
asked by 29.04.2015 / 23:37
2
answers

Modular programming in Java, called methods

I needed help putting the smallest and largest method to be "heard" in the main method. The logic of the program is to show the user the highest and lowest value of a vector . CODE: import java.util.Scanner; public class L6ex3 { pu...
asked by 19.11.2015 / 03:58
1
answer

Problem with float vector

I created a code for a college exercise that was running right, but I forgot that one of the variables of struct was a vector, and when I made a simple change everything changed. Virtually all functions are giving error. I do not find the...
asked by 19.06.2015 / 05:41
5
answers

Concatenate id by description in an array in javascript

I have an array in js with only an id and a description, for example: var variavel = [{id: 1, descrição: 'Brasil'}, {id: 2, descrição: 'Brasil'}, {id: 3, descrição: 'Chile'}, {id: 4, descrição: 'Chile'},...
asked by 12.12.2018 / 21:13
1
answer

Error reading and comparing numbers in an array

The program must read a number and compare with the numbers of a 3x3 matrix any if the number belongs to a column of the matrix it should print the position, when I type 1 it prints two positions, but the 1 is only in one position . #include &l...
asked by 16.02.2016 / 21:27
1
answer

Restrict a character limit array in LIKE

I have a question about LIKE of T-SQL. Is it possible to restrict by a number of equal characters to check how many addresses start the same and may end up different? More or less like this: Where Endereco LIKE '[array10caracteres]%'...
asked by 25.11.2014 / 12:29
1
answer

Save array to a variable in php [closed]

How to save all data from an array into a single variable? example I call a query from a certain column of the database and it generates a while and wanted to in a variable. Maybe the right one would be to join elements of an array into a str...
asked by 04.02.2016 / 19:46
1
answer

Manipulate directly $ _GET and $ _POST

I have an application that will work with a large amount of data to be manipulated and stored in a database, so it is advisable to store the values present in variables $_GET and $_POST in intermediate variables (which would lead t...
asked by 23.01.2015 / 17:20
1
answer

Returns value of an array dynamically

I have an array $teste = [1,2,3,4]; <Input type="text" value ="teste[0]" /> //retorna "1" How can I get all the array values in the inputs?     
asked by 24.09.2018 / 21:33
1
answer

C # - How do I check if 2 arrays have one or more numbers in common?

int[] numeros = new int[] {text_box1, text_box2, text_box3, text_box4}; int[] pares = new int[] {02, 04, 06, 08, 10}; int[] impares = new int[] {01, 03, 05, 07, 09};     
asked by 29.09.2018 / 04:58