Questions tagged as 'array'

0
answers

Warning: array_keys () expects parameter 1 to be array, object given in ... (error in Wordpress theme)

In a theme I had installed in my wordpress, the following errors have recently emerged after the platform was updated:    Warning: array_keys () expects parameter 1 to be array, object given in   (...) \ wp-content \ themes \ event \ inc \ li...
asked by 09.04.2017 / 21:33
1
answer

Add range of BD values in PHP

I'm doing a project in which the user can select a range of months (eg January-May) and I select the data available in my database to add them using PHP. This I must do for five different venues. The algorithm is like this: +seleccione meses:...
asked by 23.02.2017 / 16:54
1
answer

Pass Bidimensional Array element to an ArrayList [closed]

I am trying to do an exercise in which I am asked for Array Bi 5x5 and fill them with Car objects that I have created in which a Speed and a March are passed. Then what I have to do is pass the elements of that Array Bi that contain ca...
asked by 02.03.2017 / 12:35
1
answer

Ingest data to table jsp

Good afternoon. I am currently doing a program, which has a LinkedList, at the moment of wanting to apply the Method lista.contains ("Mario") returns false, it should be noted that the list is filled according to a class of the following shap...
asked by 19.03.2017 / 23:03
2
answers

Array to list with sublists

I am trying to convert an Array to a list of sublists, such that: input: '004013087631908524907452613506180379198735046740200801375849102802367495060021030' output: [[0,0,4,0,1,3,0,8,7],[6,3,1,9,0,8,5,2,4],[9,0,7,4,5,2,6,1,3],[0,6,1,8,0,3,7,9...
asked by 03.02.2017 / 15:03
2
answers

Show value associative arrangement

I have a stored procedure that returns the name of the provinces, passing the id of the country, province id. I get an array after making a call. print_r ($ a) Array ( [0] => Array ( [id_loc] => 101 [descrip] => BA ) ) I want to ge...
asked by 14.02.2017 / 21:09
2
answers

Check positions of an array and replace them with the optimal algorithm

Good evening, The problem with the next piece of code is that I need to save the positions of all the repeated values that are found, for example: Using the FIFO algorithm marcos = [4,1,2] cadena = [5,1,2,3,4,5] The f...
asked by 01.12.2016 / 05:24
1
answer

Errors with this code, what is wrong?

'asset_kind' => function($fields, $id) { $kind = get_post_field('asset_content_sections', $id); $fields = $kind['radio_kind']; return $fields; }, Some of the errors:    Undefined index: radio_kind       Illegal string off...
asked by 15.11.2016 / 20:43
2
answers

Add objects of different classes to an ArrayList in Java

I have a problem adding objects to an arraylist. I have the following code line: List data = new ArrayList (); to this list I want to approve the data of different classes, to later pass this list as a datasource to ireport. Con...
asked by 16.11.2016 / 18:25
1
answer

Get text from a JCheckBox array by adding the ChangeListener to it within a for

my problem is that inside the for where I start my JChekBox array I add the ChangeListener step, but inside this I do not know how to get the JChexBox index to get the text that is in it. example: for(int x = 0; x < cbConvertirDe.length...
asked by 19.11.2016 / 05:51