Questions tagged as 'array'

1
answer

Group records of a CSV file with PHP

Good morning, I want to group disordered records within a CSV file using PHP, I thought about using an Arrangement and looking for identical IDs and organize them one below the other, but I could have files of more than 20 thousand records and I...
asked by 29.11.2016 / 15:01
1
answer

How to fill a dropdownlist with PHP? [closed]

I was creating a dropdownlist field with the countries of the world, but there was something that bothered me since I was doing it through HTML and any user can modify the HTML code through the browser's development tool. My question is how d...
asked by 11.12.2016 / 19:38
2
answers

How to save value asked with a scanner

Good morning I'm working with java for a class project and I have a question. I have a class named Modul and another one of class Alumne. In the Alumne class I have declared an Array attribute of type Modul: ArrayList <Modul> modul...
asked by 10.11.2016 / 11:35
0
answers

Error Can not read property 'then' of undefined in md-autocomplete of Angular-material

Good afternoon. I want to use md-autocoplete of angular-material but it throws me the following error:    angular.js: 13920 TypeError: Can not read property 'then' of undefined   at fetchResults (angular-material.js: 23331)   at handleQu...
asked by 27.10.2016 / 19:59
1
answer

Help save directory and file in multidimensional array

I'm doing a code that allows me to list directories and files in a multidimensional array. The idea is to use an opendir function and with it return an array with two dimensions: $array [$is_dir] [$is_file] . I have a preliminary code:...
asked by 08.11.2016 / 19:40
1
answer

warning: unused variable 'a' [-Wunused-variable] in arrangement

The program has to show the number of elements that make up the array compiles and gives the result well but this warning appears warning: unused variable 'a' [-Wunused-variable] The error may be due to the fact that the arrangement is not...
asked by 08.10.2018 / 16:16
1
answer

how to print all the keys of an array in php?

<? php $NombreMenu=""; $NombreSubMenu=""; $Menu = array(); $consulta = 'SELECT cm.nom_menu, csm.nom_sub FROM c_submenu AS csm INNER JOIN c_menu AS cm ON csm.Id_sub = cm.Id_menu ORDER BY cm.nom_menu;'; $resultMenus...
asked by 20.09.2018 / 16:40
3
answers

Array of integers falls after execution

I have an array of integers that must change its value every time a function executes it. The problem arises every time it is executed, when going from number 1, it tells me Index was outside the bounds of the array This is my code:...
asked by 08.06.2018 / 19:31
1
answer

Call a FULL ARRANGEMENT of a class in a different class and use it in a FOR and IF cycle?

How can I send an array with values to another class, go through it (with a for) and validate each index (with an if) to send a message if it is complete or send an error message. It is a method in the class Validations that resiva the object of...
asked by 03.08.2018 / 03:29
2
answers

Compare elements of an array of integers

I need to compare in an array if the number that was digitized is repeated if it is so pull message number is repeated and enter a new one, int i, n; n = Integer.parseInt( JOptionPane.showInputDialog(null," Digite la cantidad de c...
asked by 17.02.2018 / 21:23