Questions tagged as 'array-multidimensional'

2
answers

How to make a foreach in JavaScript? [duplicate]

My application returns an array of array, where campanhas[] is an array of campanha[] which is also an array. How can I make a foreach to fetch each campaign from within the campanhas array? The array return of an a...
asked by 28.12.2017 / 22:08
2
answers

NG-REPEAT within NG-REPEAT - ANGULARJS

I have a multidimensional array. To demonstrate it in my view I use a ng-repeat in an ul within another ng-repeat in a li, this way: <ul ng-repeat="section in sections"> <li> {{section.name}} </li> <ul>...
asked by 03.11.2017 / 20:17
1
answer

Problems with input of arrays in C

I want to make a C-RAM simulator and I need to manipulate strings, so I would like to use a 4x4 array to input 4 memory locations with 4 bits: 1010 1000 1011 0000 Something like that. #include<Stdio.h> void main(){ char array[4][5]; prin...
asked by 31.03.2017 / 14:35
0
answers

Store contents of the .txt file for a vector and vice versa

Good evening. I need to read a text file and store each book (Struct book) in an array of books. The code has functions to add, edit, delete and display in the array each book.    I can not properly save the file and I think that is why I can...
asked by 16.03.2017 / 01:33
1
answer

Help with login system [duplicate]

I'm setting up a login system. But I can not validate the password you entered. When I try in this way it accuses the wrong login / password. But I already made sure, the login and password are correct: <?php require_once 'init.php';...
asked by 09.01.2017 / 20:57
0
answers

How to create a filter for a mixed multidimensional array

I have in my POST complex variables with arrays inside other arrays and so on. See: $filtro['esms_conta_id'] = 120; $filtro['data_inicio'] = 2016-010-1; $filtro['data_final'] = 2016-010-1; $filtro['status']['accepted'] = true; $filtro['status'...
asked by 01.08.2016 / 20:15
1
answer

Generate clash keys between teams using an array in PHP

Oops !! I have the following array in php , I need to create a clash between the teams and the teams that are of the same group / example array Time 01 and Time 02 can not face in the first round I thought of checking if the element is fr...
asked by 05.06.2016 / 04:24
0
answers

Change content in a given position in a multidimensional array within a structure

I'm having trouble modifying the content in a given position of a multidimensional array that is inside a structure. I have two structures struct TabelaFilial and struct ArrTabela . The struct TabelaFilial structure is being...
asked by 10.04.2016 / 21:26
0
answers

Creating multidimensional array from query to BD MySQL

I have the following problem: I have a table in a MySQL database and in a code snippet I need to make content retrieved by a query made to this database be stored in a multidimensional array / array in php. The values of the two columns queri...
asked by 13.11.2015 / 15:25
5
answers

PHP array types and values

How do I transform this type of data $pessoas->nome to $pessoas['nome'] and vice versa with php and why are they different?     
asked by 20.08.2015 / 22:53