Questions tagged as 'array'

1
answer

Press virtual keyboard buttons according to password

I made a virtual keyboard that generates the numbers and returns in json, for example: [0] => Array ( [a] => 1 [b] => 5 ) [1] => Array...
asked by 16.05.2017 / 04:33
1
answer

Split array according to payment types

index.php code <form action="add-to-cart2.php" method="post"> <label for="">Name</label> <input type="text" name="nome"> <br> <br> <label for="">Dinheiro</label> <input typ...
asked by 20.05.2017 / 20:44
1
answer

How to read a JSON Object Array with Xamarin Android Newtonsoft.Json

I'm working on an application that gets a JSON response and inserts some fields from it into an textfield android , here is the code: using System; using Android.App; using Android.Widget; using Android.OS; using RestSharp; using Newto...
asked by 08.05.2017 / 15:06
1
answer

Adding values from an array

I'm trying to make this code, which is basically a 6x6 two-dimensional array with the distance between 6 cities, then collect the route the user made in a simple array [6], and calculate the total miles that he traveled. The code: package r...
asked by 23.04.2017 / 00:06
1
answer

Catching on array data

Good morning I have the following array Array ( [0] => Array ( [ID] => 2 [UltimaAtualizacao] => 2017-04-20 16:15:00 [DataEntrada] => 2017-04-20 [Estado] => Finalizado [DataSaida] => [Relatorio] => Manutenção ) ) My q...
asked by 21.04.2017 / 10:31
1
answer

Erase some results from the array

I need to leave in the array below only the values Yes: 1 and 2 Any suggestion? I tried unset () but it did not work. array (size=3) 0 => array (size=4) 0 => string 'Adair' (length=26) 1 => string '498' (length=3)...
asked by 25.04.2017 / 02:42
1
answer

How to mount an array dynamically

I would like to make a func to return the array that follows, however I do not know the return type or how to dynamically mount this array: vDataSource_Detalhe = NSArray(objects: NSArray(objects: "Cerveja 01","Cerveja 02"), NSArray(o...
asked by 05.05.2017 / 20:49
1
answer

List getting empty after loop in python

Hello, I have the following code that does this: It will traverse a vector that has a certain sets of elements (remainder) with the same ID ([1] [1] [1] [2] [2] by example) and then store all elements of the same ID in separate vectors and then...
asked by 07.04.2017 / 06:26
1
answer

How can I print this table array array

$tabela = array( array("Atlético", "Goianiense", "Goiânia", "GO", "0 (não possui)"), array("Atlético Mineiro", "Belo Horizonte", "MG", "1 (1971)"), array("Atlético Paranaense", "Curitiba", "PR", "1 (2001)"), array("Avaí","Floria...
asked by 09.04.2017 / 03:23
0
answers

Force array to have all elements in string

$values_x = array(); for ($i = 0; $i < count( $series[0]['data'] ); $i++ ) { $values_x[] = $series[0]['data'][$i][0]; } $values_y = array(); for ($i = 0; $i < count( $series[0]['data'] ); $i++ ) { $values_y[] = $series[0]['data'][$...
asked by 30.03.2017 / 14:00