Questions tagged as 'array'

2
answers

nRec empty when receiving return from SEFAZ

Using the NFePHP project API, through the function: $retorno = $nfe->sefazEnviaLote($aXml, $tpAmb, $idLote, $aResposta, $indSinc, $flagZip); I get the array $aResposta . However this array is returning the nRec empty tag....
asked by 12.01.2017 / 15:30
2
answers

compare and remove repeated item

I have this array of objects, and I would like to go through and remove the author repeated by name, but I can not. public class Pessoa { private Autor autor[]; int cont = 0; public Pessoa(Autor autor[]) { this.autor = au...
asked by 14.11.2016 / 22:10
3
answers

Sort array by itself within the index in PHP

I'm working with the datatables, and by chance I decided to use the function ajax of it, I did the whole process, but one thing is missing, I can reorder the array, because using processing server-side dataTables does not intera...
asked by 19.10.2017 / 19:06
3
answers

Help with java arrays

I have the array disciplines and the current array. The current one is an exact copy of the subjects. If there are two equal strings within the disciplines array I need to delete all equal and keep only one. That is, the current should not...
asked by 16.11.2017 / 17:31
2
answers

How to extract and list values from a multidimensional array?

I have this array: Array ( [Bairro] => Array ( [0] => Aberta dos Morros [1] => Camaquã [2] => Cavalhada [3] => Cristal [4] => Guarujá [5] =...
asked by 03.01.2016 / 03:19
2
answers

Break txt file into blocks, and each block in lines

I have an "active.txt" file where you can find information blocks Ex: SACOLAO CENTER R RUA PAULINO MENDES LIMA,31 CENTRO...
asked by 10.07.2015 / 17:50
1
answer

How to check if a file containing a specific word exists?

I'm using PHP, and in a server folder it contains files with these names: T3497012@16-01-02:21@[email protected] T3497012@16-01-02:22@[email protected] T3497012@16-01-02:23@[email protected] T3497012@16-01-02...
asked by 16.01.2018 / 20:27
2
answers

Array lookup within another array in Java

I need to compare two two-dimensional arrays ( int[][] ) of different sizes, the two being formed by integer values (1 or 0), to check if there is the smaller array inside the larger array. Larger array example: Smallestmatrixexample:...
asked by 20.10.2015 / 03:13
1
answer

Depth Array

I have an a1 Array a1=[a2[a3[a4[]],a5]] I need to know the depth of the array in this case is 3 because in the array a1 has the array a2 and inside of a2 has a3 and inside a3 has a4, that is 3 levels deep. The depth changes from array to...
asked by 30.05.2014 / 00:04
1
answer

How to check if all values are equal in a vector in r

I have as a function answer the RMSEA, GFI, NFI and CFI vectors that can contain all the same values. In the sequence I use the algorithm below to test the normality through the shapiro-wilk test. When the values are all equal it returns error o...
asked by 05.09.2018 / 22:47