Questions tagged as 'array'

1
answer

Error when programming in android studio

I do not know why it tells me that the Método Lugar() can not be applied in the class Lugar for its parameters that we passed to it. package com.example.mislugares; public class Lugar { public String getNombre() { return nom...
asked by 14.09.2017 / 01:28
1
answer

Replace multiple strings in PHP

I want to replace the result of several variables by PHP, each variable has a different value, I would like it if one value gives me a result that is changed by another. $descarga1 > Esto me devuelve el valor > Mega.co.nz ó Dropbox.com $...
asked by 22.06.2017 / 03:29
2
answers

PHP: Remove duplicates ARRAY [duplicated]

I have armed an array of this type: $array =array('epc' => "$tag",); When doing a print of $ array I get the following:    Array ([epc] => 1792) Array ([epc] = > 1792) Array ([epc] => 1212) Array ([epc] = > 1792) Array ([epc]...
asked by 28.09.2017 / 06:27
1
answer

Select a record of an array in Laravel 5.3

Hi, I want to select a data that is stored in an array, for example the data I need is in position 1, but I do not know how to select it: My controller is the following, I have minimized it for greater understanding: public function l...
asked by 12.02.2017 / 07:13
2
answers

Chain Arrangements

How can I store strings in a C array? For example I want an arrangement where I can save 3 names arrangement="juan", "Pedro", "Santiago"; juan in position 0 of the arrangement Pedro in position 1 of the arrangement Santiago in position 2 o...
asked by 30.11.2018 / 03:03
2
answers

Add PHP Array data

I have the following arrangement: (this data is sorted by invoice but could be scrambled). $datos =[{"factura":88,"total":41587.3942},{"factura":88,"total":43.01},{"factura":88,"total":1472},{"factura":88,"total":117.98},{"factura":88,"total":...
asked by 08.12.2018 / 01:07
2
answers

Choose an array element randomly

I have an array with the elements: $base = array( 'root', 'user', 'admin', 'hack', 'cloud', 'apple', 'linux', 'blue', 'dark',...
asked by 03.01.2019 / 23:14
1
answer

c ++ error 'const class std :: vectorNode' has no member named 'find';

I'm using a structure of set that contains a vector , which in turn contains an object of a class called Nodo , when I try to use the function find() of the vector of the stl me There is an error, consider that i...
asked by 13.11.2018 / 01:43
2
answers

problem reading array

I am receiving this array of objects as a callback with a ajax request [ {"nombre":"Kabul"}, {"nombre":"Qandahar"}, {"nombre":"Herat"}, {"nombre":"Mazar-e-Sharif"}, {"nombre":"Otra"} ] This is the way I read the array of objects and t...
asked by 01.11.2018 / 19:39
2
answers

Initialize Array that is private property of one class in another!

I have a project for a structured exercise in three packages: Application (Main) package aplicacion; import mountainbike.MountainBike; public class ProbandoMountainBike { public static void main(String[] args) { MountainBike mb = new...
asked by 09.05.2017 / 17:46