Questions tagged as 'array'

1
answer

Transform array records into another multidimensional array

I want to transform this array: array:6 [ 0 => { "saldo": "-257,21" "id_mes": 1 "ano": "2018" } 1 => { "saldo": "-257,21" "id_mes": 2 "ano": "2018" } 2 => { "saldo": "0" "id_mes": 1 "ano"...
asked by 16.02.2018 / 13:21
1
answer

doubts with json / array nesting

I have this json { "MedPaciente": [ { "ProdutoModel": { "LaboratorioModel": { "id_laboratorio": 7951, "nome": "BOEHRINGER INGELHEIM", "data_cad": "28/12/2017",...
asked by 17.02.2018 / 17:48
3
answers

Sum of an array and concatenation of PHP value

I have a dynamic array, it contains keys that duplicate (TAG): [0] => Array ( [0] => Array ( [tag] => 5x1 Acessori Kids [pedido] => 6701622409...
asked by 12.02.2018 / 20:53
1
answer

Error when separating arrays in PHP

I have a PHP class responsible for sending invoices, however it returns the following error, as if trying to pass an array to the variable: [13-Mar-2018 14:08:26 America/Sao_Paulo] PHP Notice: Array to string conversion in C:\...ToolsNFePHP....
asked by 13.03.2018 / 17:53
1
answer

Return data from .lua file in PHP in array form

I need to access some data stored in a .lua file in PHP. This is the content of the meu_arquivo.lua file: tbl = { [22004] = { unidentifiedDisplayName = "Sapato", unidentifiedResourceName = "»÷µé", u...
asked by 02.03.2018 / 21:56
2
answers

Error trying to scan an array

I'm trying to scan the array inside the loop, as per the code below: import java.util.Scanner; public class RapidoPora { public static void main(String[] args) { int[] nota = new int[10]; for(int c = 0; c < 11; c+...
asked by 04.03.2018 / 20:32
1
answer

Function Result in an Array of Objects?

How to transform the output of this function into a array ? In future I would like to call only the result of a particular row, such as $palavraschave[1] . <?php $url= 'https://www.telelistas.net/ac/acrelandia'; function palavr...
asked by 06.03.2018 / 01:11
1
answer

return array (array) of a function in php

I am storing the data of a database in an array in a file called funcoes.php : while($line = mysqli_fetch_array($execute)){ $tabela[$a][$b] = $line['Activit']; $tabela[$a][$b+1] = $line['Usuario']; $tabela[$a][$b+2...
asked by 19.02.2018 / 20:26
4
answers

Php Array - Associating data

Hello, I would like to associate the chosen data in checkbox, with those of an input. I have one side, a list of results, where I will select in a checkbox, and each one will receive a new value chosen by the user. For example: On the screen...
asked by 16.01.2018 / 17:43
1
answer

How to check if the array is symmetric?

I'm doing a college activity in which it asks to check if the array entered by the user is symmetric or not. Here's my code: #define TAMANHO 4 #include <stdio.h> #include <stdlib.h> #include <locale.h> void receberMa...
asked by 08.01.2018 / 21:20